Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

mysql command line for the creating a database install step?

+3 votes

Can some please share their command line for the following step?

Create a MySQL database, and a MySQL user with full permissions for that database.
If you're interested, the privileges actually needed are: CREATE, ALTER, DELETE, INSERT, SELECT, UPDATE, LOCK TABLES

 

asked May 17, 2011 in Q2A Core by Paul McIntosh

1 Answer

+1 vote
answered May 17, 2011 by ProThoughts
Thanks :) The exact commands ended up being...
mysql> CREATE DATABASE qadb;
mysql> CREATE USER 'qauser'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT CREATE, ALTER, DELETE, INSERT, SELECT, UPDATE, LOCK TABLES ON `qadb` . * TO 'qauser'@'localhost';
mysql> FLUSH PRIVILEGES;