MySQL quickly creates databases and users

Source: Internet
Author: User

Use the shell to run MySQL statements to quickly and easily create MySQL users and databases.

The CREATE statement is given below, where the dollar sign indicates a command prompt:

$ mysql-u adminusername-penter password:welcome to the MySQL monitor.  Commands End With; or \g.your MySQL connection ID is 5340 to server version:3.23.54 Type ' help, ' or ' \h ' for help. Type ' \c ' to clear the buffer. mysql> CREATE DATABASE DatabaseName; Query OK, 1 row Affected (0.00 sec) mysql> GRANT all privileges on databasename.* to "wordpressusername" @ "hostname" IDE Ntified by "password"; Query OK, 0 rows Affected (0.00 sec)  

MySQL quickly creates databases and users

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.