://www.kakapart.com/files/mysql-5.6.16.tar.gztar -zxv -f mysql-5.6.16.tar.gzcd mysql-5.6.16
V. Compile and install MySQLFrom mysql 5.5, mysql source code installation began to use cmake, and the source code compilation configuration script was set.
cmake \ -DCMAKE_INSTALL_
where the mysql. sock file is generated. Change socket =/var/lib/mysql. sock to/home/mysql. sock. The procedure is as follows:Vi my. cnf (use the vi tool to edit the my. cnf file and find the following data to modify)# The
perform the check. You can also use the check/repair function in the new phpMyAdmin version.2. myisamchk, isamchkHere, myisamchk applies to MYISAM data tables, while isamchk applies to ISAM data tables. The main parameters of these two commands are the same. Generally, new systems use MYISAM as the default data table type. here we use myisamchk as an example. When a problem occurs in a data table, you can use:1. myisamchk tablename. MYITo fix the issue, use:1. myisamchk-of tablename. MYIFor det
= "$ rundir"/mysql. sock
Note:-- Pid-file = "$ rundir"/mysql. pid -- socket = "$ rundir"/mysql. sock -- datadir = "$ rundir"/varThe purpose is to put the corresponding data and temporary application files together;-O is generally followed by the global variable optimizatio
still carried out on rhel5. On the cmake official website, 2.6.4 is always the same as the two versions. download availableDownload cmake11.2.1[Root @ localhost src] # wget[Root @ localhost src] # tar-zvxf cmake-2.8.12.1.tar.gz[Root @ localhost src] # cd cmake-2.8.12.1[Root @ localhost cmake-2.8.12.1] #./bootstrap[Root @ localhost cmake-2.8.12.1] # make make install[Root @ localhost cmake-2.8.12.1] # cmake -- help | head-n1Cmake version 2.8.12.1[Root @ localhost cmake-2.8.12.1] # cd/usr/local/
file in the filesystem (default/tmp/mysql. sock), or by using TCP/IP, which connects through a port number. A Unix socket file connection is faster than TCP/IP, but can be used only when connecting to a server on the same computer. A Unix socket file is used if you don't specify a hostname or if you specify the special hostname localhost.
If the MySQL server is
Centos7 mysql-5.7.11 Installation
I encountered many problems when installing MySQL on Centos for the first time. If you have any problems during the process, please advise ~~
I. Environment1. Centos7 full installation (some basic software is installed)2. mysql version 5.7.11
Ii. Prepare for installing mySql1. Dependency# Yum install-y gcc-c ++ make cmake bison
can turn off this feature to get a quicker startup with-Database changedMysql> select * from t;+ ------ +| A |+ ------ +| 1 || 2 || 3 || 4 |+ ------ +4 rows in set (0.00 sec)Mysql> exitBye[Root @ tong1 ~] #
5. Back up a single database
[Root @ tong1 mysql-5.6.22] # mysql-u root-p-e "create table tong. t1 (q int )"Enter password:
[Root @ tong1
/mysql_2 as the primary, the port 3307,/usr/local/mysql from, and the port to 3306.Create a test library in your Lord#mysql-uroot-s/tmp/mysql2.sock-e "CREATE Database db1;"Then export the master MySQL library data and import it to DB1#mysqldump-uroot-s/tmp/mysql2.sock
[Single instance installation] description: that is, only one service, a port sed-i2slocalhost.localdomainmysqletcsysconfignetworkhostnamemysqlyum-yinstallncurses-develgccgcc-c + + useraddmysql-ssbin... [single instance installation]
Note: only one service and one port are provided.
Sed-I 2 s/localhost. localdomain/mysql // etc/sysconfig/network
Hostname mysql
Yum-y install ncurses-devel gcc-c ++
Useradd
I have sorted out some solutions to the Mysql problem in the FreeBSD environment for your reference!
1. An error occurred while modifying the root user password:
# Mysqladmin-uroot-p password 'newpassword'
Enter password:
Mysqladmin: connect to server at 'localhost' failed
Error: 'Access denied for user' root' @ 'localhost' (using password: YES )'
Solution
#/Etc/init. d/mysql stop
# Mysqld_safe -- user =
Php cannot use localhost to connect to the mysql server. mysql is installed in redhat. in the mysql console, you can use localhost to connect to the server. However, when you connect to the server in php, you cannot connect to the server using 127.0.0.1, check the hosts file and find out which of the following heroes corresponding to 127.0.0.1 and localhost know
Php cannot use localhost to connect to the mysql server. mysql is installed in redhat. in the mysql console, you can use localhost to connect to the server. However, when you connect to the server in php, you cannot connect to the server using 127.0.0.1, check the hosts file and find out which of the following heroes corresponding to 127.0.0.1 and localhost know
still dangerous, because if the MySQL program itself has problems, unauthorized access can bypass the built-in security mechanism of MySQL. The method to disable network listening is very simple. In the [mysqld] section of the/chroot/mysql/etc/my. cnf file, remove "#" before # skip-networking. When the network is closed, how does a local program connect to the
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.