Install and configure mysql5.0 in rpm

Source: Internet
Author: User
Tags mysql commands

MySql installation during rpm installation and configuration of mysql5.0: first check whether: rpm-qa | grep mysql -- both check rpm-qa | grep MySQL. If installation is successful, delete: rpm-e ****** 1. Before installation, prepare mkdir usr/mysql cd to enter the Directory and upload the installation package to the/usr/mysql directory. 2. Install: rpm-ivh MySQL-server-5.0.16-0.i386.rpm rpm-ivh MySQL-elient-5.0.16-0.i386.rpm3, verify installation is successful: rpm-qa | grep mySQL start mysql method: 1, service mysql start2,/etc/rc. d/init. d/mysql start installation directory:/usr/mysql database Directory:/var/lib/mysql configuration file directory:/usr/share/mysql related commands: /usr/bin/script at startup:/etc/rc. d/init. d/set the password:/usr/share/mysqladmin-u root password '000000' # MySQL-u-root-p> show databases;> use mysql;> show tables;> quit; --------------- When you exit from the database: update MySQL set host = '%' where host = 'localhost' grant all privileges on *. * to root @ "%" flush privileges common mysql commands: 1. Restart the mysql service: # server mysql restart2. Check whether mysql is installed: # rpm-qa | grep mysql3. uninstall mysql: # rpm-e mysql-server; # rpm-e mysql-client4, other commands: # mysqladmin version; # mysqladmin status;

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.