How to run MySQL commands in the ora Environment

Source: Internet
Author: User
Tags mysql commands

The MySQL command under Fedora is described in detail first. I am also just learning MySQL. If something is wrong, please correct me and hope that I can help you with some experience. The following describes my installation:

1. My operating system is Fedora release 17.
This does not involve how to install linux. If you need it, you can send a message to me on the website. In fact, the installation is quite simple.
2. MySQL I installed is 5.5.28 of the latest version. You can download to: http://www.mysql.com/downloads/mysql/ from this URL
Go to the web site, select MySQL Community Server, and click to enter the download page. You will see:

Select the Linux Generic option.
Download the following seven files:

3. After the preparation is complete, install linux:
First, create a folder in linux: mkdir/usr/local/src/mysql (Convention ).
Then, put the seven files in this folder.
Run: rpm-ivh -- force/usr/local/src/mysql/MySQL-*. rpm.
Wait until the installation is complete and restart the computer.
4. After the computer restarts, type mysql in the command line. If 'mysql> 'is displayed, the installation is successful.
5. No password is set for installation by default. Next we can set a password for the root user by using the command: set password = password ('your password ')
6. When you exit mysql and want to log on again, enter the full command: mysql-h localhost-u root-p. Then, enter the password.

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.