Changing the default database for Rails to MySQL -
I am trying to use MySQL as a database for a database for which I have the default database. IML File
development: Exam: Production: ` But I After trying to create tables from the console, any .sql file is being created, Ruby on Ruby will not be appreciated any help of any knot mixtures. Thank you. This will not be in your rail directory. You must have MySQL installed on your computer and you have to create a database in mysql. Install mysql: To use mysql through the command line: Or if you have a mysql root user: and enter your root mysql user password Once you are in mysql: Clearly change
adapter: mysql encoding: utf8 reconnect: wrong database: *** _ development pool: 5 username: Root password: ***** * Host: Localhost
Adapter: mysql encoding: UTF 8 again Connect to: Incorrect database: *** _ test pool: 5 sub Yogener Name: Root Password: ****** Host: Localhost
Adapter: mysql Encoding: Utf8 reconnect: Incorrect Database: *** _ Production Pool: 5 Username: Root Password: ****** Host: Localhost
$ mysql
$ mysql -u root -p
mysql> Create database db_name; Mysql & gt; Db_name * Mysql & gt; Provide all authority over TO 'username' @ 'localhost' mysql & gt; Identity of 'password';
db_name ,
username and
password accordingly.
Comments
Post a Comment