Default installation path for MySQL5.5 RPM installation

Source: Internet
Author: User

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

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.