This is just very little subset of command to help beginners with MySQL. Do not expect something extraordinary :)
All the command must be executed from mysql command prompt which you can reach with command:
mysql -u username -p password
1. Create database
CREATE DATABASE mybase;
2. Switch to use database
USE mybase;
3. Create user
CREATE USER myuser IDENTIFIED BY 'password';
4. Assign all right of user to database
GRANT ALL PRIVILEGES ON mybase.* TO 'myuser';
5. Flush privileges (to make them work at the moment)
FLUSH PRIVILEGES;
Be aware command are all caps, with small caps are parameters
Subscribe to:
Post Comments (Atom)
Compressed tar archive
There are some cases when you want to create compressed tar archive but you do not have enough disk space to keep original files and tar arc...
-
To build firewall under AIX is sample, but as each host based firewall should be done careful 1. Prerequisites To start firewall in AIX yo...
-
There are some cases when you want to create compressed tar archive but you do not have enough disk space to keep original files and tar arc...
-
4. Its time for some system administrator tasks. Oracle ASM need special mark of disks will work with 4.1. Because of some reason (i don...
No comments:
Post a Comment