[Assembly] LAMPMySQL does not know where to install it. Yuminstallmysql-server

Source: Internet
Author: User
[Installation] LAMPMySQL does not know where to install it. Yuminstallmysql-server: in this post, the LAMP environment is edited and installed by default7 at 2014-06-1316: 00: 53. the server is CentOS (built on the vmvm) and comes with MYSQL. You can also use the yum command to directly install mysqlyum & [install] LAMP MySQL without knowing where to install it. Yum install mysql-server

This post was last edited by default7 at 16:00:53

Install the LAMP environment. the server is built on CentOS (vmvm) and comes with MYSQL.
You can also use the yum command to directly install mysql.
yum install mysql
yum install mysql-server
yum install mysql-devel


Then, view the location:

[[email protected] php-5.5.13]# whereis mysql
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
[[email protected] php-5.5.13]# which mysql
/usr/bin/mysql
[[email protected] php-5.5.13]# pwd
/home/default7/Downloads/php-5.5.13
[[email protected] php-5.5.13]#
[[email protected] php-5.5.13]# find / -name my.cnf
/etc/my.cnf

[[email protected] php-5.5.13]# pwd
/home/default7/Downloads/php-5.5.13
[[email protected] php-5.5.13]# ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/share/mysql


An error is reported at the end of the task (the last segment ):

checking whether to enable multibyte string support... no
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for external oniguruma... no
checking for mcrypt support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under /usr/share/mysql.
Note that the MySQL client library is not bundled anymore!


Apache and PHP have been installed, that is, MYsql does not know where to come -- with-mysql = this path I tried every mysql in whereis mysql and made a MYsql error. Where is mysql installed.

Configure: error: Cannot find MySQL header files under/usr/share/mysql.
Note that the MySQL client library is not bundled anymore!



/Usr/share/mysql folder content

[[email protected] mysql]# whereis mysql
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
[[email protected] mysql]# cd /usr/share/mysql
[[email protected] mysql]# ls
charsets my-innodb-heavy-4G.cnf
config.huge.ini my-large.cnf
config.medium.ini my-medium.cnf
config.small.ini my-small.cnf
czech mysql_fix_privilege_tables.sql
danish mysql_system_tables_data.sql
dutch mysql_system_tables.sql
english mysql_test_data_timezone.sql
errmsg.txt norwegian
estonian norwegian-ny
fill_help_tables.sql polish
french portuguese
german romanian
greek russian
hungarian serbian
italian slovak
japanese spanish
korean swedish
my-huge.cnf ukrainian
[[email protected] mysql]# cd bin
bash: cd: bin: No such file or directory
[[email protected] mysql]#






------ Solution --------------------
Use commands such as whereis to find
------ Solution --------------------
[[Email protected] php-5.5.13] # which mysql

/Usr/bin/mysql

Didn't you tell me that mysql is in/usr/bin/mysql? Why do I need to use/usr/share/mysql?

------ Solution --------------------
Cannot find MySQL header files

This is because the mysql header file is not installed during mysql installation, or the path is incorrectly specified, and php cannot find the mysql header file.

Run
Find/-name "mysql"

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.