How to install mysql database and some running commands in ubuntu

Source: Internet
Author: User
How to install the mysql database and some running commands in ubuntu-general Linux technology-Linux technology and application information. The last time we talked about installing ubuntu In the VM environment, what I want to say is that I encountered problems when installing the mysql database.
For the first installation, I gave the mysql Binary Package down, but the installation was unsuccessful and it failed to run.
The second is to call the linux console and run the command to install it. Succeeded.
Command is under root permission, enter apt-get install mysql-server-5.1 press Enter. Then, wait for the installation. The system will download the installation package and update it. During the installation process, you will be asked to enter the password and press enter directly. Otherwise, the database cannot be started, after the installation is complete, you can change the password by calling the command.
After installation, first enter the database. The root account of the database installed here has no password. You need to run the mysqladmin command to change the password. The command is as follows:
Mysqladmin-u root password
You can set the ROOT account to the password. Note that the ROOT account is not the same as the system ROOT account.
The mysql-u root-p password is used to access the database.
For the time being, I only figured out something like this. If you have any experts, I hope to teach you more about it. Thank you.
Related Article

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.