./configure--prefix=/usr/local/mysql--with-extra-charsets=all--with-innodb--with-plugins=partition
Then make
Report the following error
.. /depcomp:line 571:exec:g++: Not Found
MAKE[1]: * * * [MY_NEW.O] Error 127
MAKE[1]: Leaving directory '/usr/local/src/mysql-5.1.34/mysys '
Make: * * * [all-recursive] Error 1
Online Answer Yes
Yum Install-y gcc-c++
Well, install this, the mistake is no report, then execute make
./include/my_global.h:1110:error:redeclaration of C + + built-in type ' bool '
Query a bit, the Netizen said is not installed C + +, but I queried a bit, there is AH
[Email protected] packages]# Rpm-qa | grep gcc-c++
gcc-c++-4.4.7-11.el6.i686
Look at other articles and say you can do it again./configure try it, all right, start again.
[Email protected] packages]#! 145 go back to your car.
I am a virtual machine installed CentOS, allocated 730M of memory, make a why so long ah, 艹 left to stroll around, not yet ...
Make no error, hurry make install
No more errors.
The next step, we'll start with a bit of initialization.
[Email protected] bin]#./mysql_install_db
See/usr/local/mysql generate var This folder, if there is, the build succeeds
[[email protected] var]# ls
Localhost.localdomain.err MySQL Test
[Email protected] var]# pwd
/usr/local/mysql/var
And then get this MySQL service up again.
I actually executed the Servie mysqld restart, the result is imagined ...
[Email protected] bin]#/mysqld_safe--user=mysql &
And then you can verify that there's no running.
[Email protected] packages]# Ps-aux | grep ' MySQL '
Warning:bad syntax, perhaps a bogus '-'? See/usr/share/doc/procps-3.2.8/faq
Root 31177 0.0 0.1 4356 744 pts/1 s+ 00:42 0:00 grep mysql
OK, get up, good personality, it's time to set a password
[Email protected] bin]#/usr/local/mysql/bin/mysqladmin password 123456
/usr/local/mysql/bin/mysqladmin:connect to server at ' localhost ' failed
Error: ' Can ' t connect to local MySQL server through socket '/tmp/mysql.sock ' (2) '
Check that Mysqld was running and that the socket: '/tmp/mysql.sock ' exists!
Service This piece of me is up, then go to TMP see it, go in a look, there is really no
Look at the logs, the log is the only one in MySQL, it should be this bar, open to see
Less/var/log/mysqld.log.rpmsave
150429 09:56:41 mysqld_safe mysqld from PID File/var/run/mysqld/mysqld.pid ended
Go in/var/run, and then press the table how do not come out mysqld ..., there is no this folder?
Then I'll create a try.
[Email protected] tmp]# Mkdir/var/run/mysqld&&touch Mysqld.pid&&vim mysqld.pid
Let's add the service first.
Cd/usr/local/mysql/share/mysql
[email protected] mysql]# CP mysql.server/etc/init.d/mysqld
Chkconfig--add mysqld
Chkconfig--list mysqld
Chkconfig--lerels mysqld on
Service mysqld Restart
I got an error.
[Email protected]alhost mysql]# service mysqld Restart
error! MySQL Manager or server PID file could not being found!
Starting MySQL. error! Manager of Pid-file quit without updating file.
I also encountered two questions before remembering to write this record, then forgot to record ...
Looks like there's something. Redeclaration of C + + built-in type ' bool '
centos6.5 compile MySQL error exec:g++: not found