*.*: The corresponding operation permissions of the current user on all databases and tables Note: mysql operation instructions GRANT: Empowerment commandĪLL PRIVILEGES: All permissions of the current user GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY '123456' WITH GRANT OPTION (5) Execute the following command to set permissions for the root user use mysql (4) Start mysql and directly enter "mysql" on the terminal ~]# mysql (3) Start mysql service ~]# service mysqld start & chkconfig mysqld on (2) Install MySQL server x86_ sixty-four ~]# yum -y install mysql-server.x86_64 (1) Search mysql installation package and find mysql server x86_ sixty-four ~]# yum search mysql Note: only mysql5 can be installed in this way X version, the latest version of MySQL cannot be installed Rpm -e -nodeps mysql // Strong deletion mode: if you use the above command to delete and prompt other dependent files, you can use this command to delete them Check whether mysql has been installed ~]# rpm -qa|grep mysql #No output indicates no installation If the server is overseas, replace the third command with the official Vault source (for overseas servers) curl -o /etc//CentOS-Base.repo `Ģ, Install MySQL online using yum or up2date (1) Direct installationġ. Note: Alibaba cloud, that is, the domestic agent, is used here. Note: five lines of commands, five steps, step by step copy operation ~]# sed -i "s|enabled=1|enabled=0|g" ~]# mv /etc//CentOS-Base.repo ~]# curl -o /etc//CentOS-Base.repo ~]# yum clean ~]# yum makecache If there is a problem with yum, you need to execute these five lines of commands Note: if you have no problem with yum, please skip this step to install Yum by yourselfĢ. If you are using a simplified version of CentOS, you need to install yum first 1, Centos6 X version of yum image installationġ.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |