User Tools

Site Tools


mysql

MySQL

Connect to server

mysql -h hostname -u username -p

Create database

CREATE DATABASE databasename;

Grant privileges to new user

GRANT ALL PRIVILEGES ON databasename.* TO 'username'@'hostname' IDENTIFIED BY 'password' REQUIRE SSL;
mysql.txt · Last modified: 2011/06/16 17:29 (external edit)