Create a database with mysql client

To follow these instructions, you must know the root password for the database. This is likely different from the root password of the server.

  1. Start mysql client: mysql -u root -p
  2. Create database: CREATE DATABASE mydatabasename;
  3. Create user: CREATE USER myuser IDENTIFIED BY 'mypassword';
  4. Give user permissions to the database: GRANT ALL ON mydatabasename.* to myuser;

Reference: http://docs.elgg.org/wiki/Create_a_database_with_mysql_client

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s