Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2012 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3964948 to your computer and use it in GitHub Desktop.
Save anonymous/3964948 to your computer and use it in GitHub Desktop.
$ mysql --user=web145-mydb --password=mypassword
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 664083
Server version: 5.1.52 Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
| web145-mydb |
+--------------------+
4 rows in set (0.00 sec)
mysql>
$ cat application.ini
resources.view[] =
resources.db.adapter = PDO_MYSQL
resources.db.params.host = localhost
resources.db.params.username = web145-mydb
resources.db.params.password = mypassword
resources.db.params.dbname = web145-mydb
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment