default installation path for MySQL5.5 RPM installation
2011-06-20 10:34:32| Category: MySQL| Report | Font size Subscription
Download Lofter Clientdue to a customer request to install mysql-5.5.11,apache-2.2.18,php-5.3.6, these are now relatively new versions. apache-2.2.18,php-5.3.6 is now the latest stable version. The MySQL compilation installation of the MYSQL-5 series uses CMake, and one toward the other. An error has not been resolved, it is said that the official still has not replied. So I used RPM package to install mysql-5.5.12 for the client. But my apache-2.2.18,php-5.3.6 are all compiled and installed. in the Compile PHP option to point to the MySQL installation directory, but the RPM package when installing MySQL, what is the MySQL installation directory?
The following options, PHP compilation needs to be specified. Especially the MySQL installation directory and the APXS directory.
--with-mysql[=dir]: includes MySQL extension, [=dir] specifies MySQL installation directory, omit [=dir] to default location/usr
--with-mysqli[=file]: Contains the mysqli extension, [=file] Specifies the Mysql_config file location, omitting [=file] is the default location/usr/bin/mysql_config
--with-pdo-mysql[=dir]: Contains the pdo:mysql extension, [=dir] Specifies the MySQL installation directory, omit [=dir] is the default location/usr
--with-apxs2[=file]: Compile to Apahce2 shared module, [=file] Specify apache2 apxs file location, omit [=file] to default location/usr/sbin/apxs
[Email protected] ~]# Find/-name Mysql-print
/etc/logrotate.d/mysql
/etc/rc.d/init.d/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/var/lock/subsys/mysql
/usr/lib/mysql
/usr/include/mysql
/usr/share/mysql
/usr/bin/mysql
Data default directory:/var/lib/mysql
mysql default installation directory:/usr/share/mysql
Find/-name mysql.h Find/-name libmysqlclient.so mysql>show variables; DataDir
Default installation path for MySQL5.5 RPM installation