Some tips about MySQL Databases

Source: Internet
Author: User

The following articles mainly describe the actual operations of MySQL database management and configuration database mysqladmin and how to operate the database correctly. The specific descriptions of these content are as follows, hope that you will go from the middle to what you want.

Download rpm from the MySql database website and install two packages: server and client, which contains programs such as mysqladmin ).

After installation, start the database first:

 
 
  1. $ /etc/init.d/mysqld start 

In this case, the database can be accessed anonymously and there is only one database named test. For further settings, run mysql_secure_installation, which will help you set such items as passwords. After running this program, your mysql database instance can be officially launched.

Manage and configure the database mysqladmin ):

1. view the database instance status:

 
 
  1. $ mysqladmin -u root --password=<your password> status 

2. Check whether the database instance is running:

 
 
  1. $ mysqladmin -u root --password=<...> ping 

Database Operations (mysql ):

1. Connect to the local database instance:

 
 
  1. $ mysql -u root --password=<your password> 

The following commands assume that the mysql database is currently in use.

2. view the databases in the current database:

 
 
  1. mysql> show databases; 

The above content is a "little bit" Introduction to the MySQL database. I hope you will have some gains.

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.