MySQL
Useful Commands
Connect to database
Show process list
or if already connected to MySQL
Kill query
Create database
Show databases
Select database
Show tables
Show table layout
Create a MySQL user
Replace username and password with the username and password required
Grant permissions to a database
Replace database and username with the database and username required
Once this has been run, run the below command to flush privileges:
Finally this command to verify:
Set MySQL root password
Replace the 2nd password with what you want the password to be.
Comments
Post a Comment