《MysqL必读MysqL教程》要点:
本文介绍了MysqL必读MysqL教程,希望对您有用。如果有疑问,可以联系我们。
MysqL必读linux *** 作系统:CentOS 6.3
1、下载:当前MysqL版本到了5.6.10
下载地址:http://cdn.MysqL.com/Downloads/mysql-5.6/mysql-5.6.11.tar.gz
MysqL必读2、安装必要软件包
MysqL必读3、开始编译安装(默认情况下是安装在/usr/local/MysqL )
MysqL必读[root@jbxue ~]# groupadd MysqL
[root@jbxue ~]# useradd -r -g MysqL MysqL
[root@jbxue ~]# tar -zxvf mysql-5.6.10.tar.gz
[root@jbxue ~]# cd mysql-5.6.10
[root@jbxue mysql-5.6.10]# cmake .
[root@jbxue mysql-5.6.10]# make && make install
[root@jbxue ~]# chown -R MysqL.MysqL /usr/local/MysqL
[root@jbxue ~]# cd /usr/local/MysqL/scripts
[root@jbxue ~]# ./MysqL_install_db --user=MysqL --basedir=/usr/local/MysqL --datadir=/usr/local/MysqL/data
[root@jbxue ~]# cd /usr/local/MysqL/support-files
[root@jbxue support-files]# cp MysqL.server /etc/rc.d/init.d/MysqL
[root@jbxue support-files]# cp my-default.cnf /etc/my.cnf
[root@jbxue ~]# chkconfig -add MysqL
[root@jbxue ~]# chkconfig MysqL on
[root@jbxue ~]# ln -s /usr/local/MysqL/lib/MysqL /usr/lib/MysqL
[root@jbxue ~]# ln -s /usr/local/MysqL/include/MysqL /usr/include/MysqL
[root@jbxue ~]# ln -s /usr/local/MysqL/bin/MysqL /usr/bin/MysqL
[root@jbxue ~]# ln -s /usr/local/MysqL/bin/MysqLdump /usr/bin/MysqLdump
[root@jbxue ~]# ln -s /usr/local/MysqL/bin/myisamchk /usr/bin/myisamchk
[root@jbxue ~]# service MysqL start
Starting MysqL SUCCESS!
[root@jbxue ~]# MysqLadmin -u root password pwd
[root@jbxue ~]# MysqL -uroot -ppwd
Welcome to the MysqL monitor. Commands end with ; or g.
Your MysqL connection ID is 1
Server version: 5.6.11 Source distribution
MysqL必读copyright (c) 2000,2013,Oracle and/or its affiliates. All rights reserved.
MysqL必读Oracle is a registered Trademark of Oracle Corporation and/or its
affiliates. Other names may be Trademarks of their respective
owners.
MysqL必读Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
MysqL必读4、开启远程连接权限
主机环境搭建之常用配置篇-linux MysqL 允许远程连接
MysqL必读通常,要在本地使用一些工具管理我们的数据库服务器,那么安装MysqL后,默认是不允许远程拜访的,如何配置远程连接呢?
错误:
ERROR 1130: Host ’192.168.1.3′ is not allowed to connect to this MysqL server
MysqL必读解决办法:
use MysqL;
select ‘host’ from user where ‘user’='root’;
update user set host = ‘%’ where ‘user’ = ‘root’;
flush privileges;
MysqL必读注意:在MysqL 命令行形式下必定要输入”;”.
欢迎参与《MysqL必读MysqL教程》讨论,分享您的想法,内存溢出PHP学院为您提供专业教程。
总结以上是内存溢出为你收集整理的Mysql必读MySQL教程全部内容,希望文章能够帮你解决Mysql必读MySQL教程所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)