- 主题:我的编译为什么总有错,mysql
checking for int8... (cached) no
checking base type of last arg to accept... (cached) socklen_t
checking return type of qsort... (cached) void
configure: error: Cannot find MySQL header files under /usr/include/mysql
[bbs@Zzone php-4.4.1]$ ./configure --prefix=/home/www/php --with-apxs=/home/www/bin
/apxs --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --w
ith-dom --with-gd --with-freetype-dir=/usr/lib --with-png-dir --with-iconv --with-j
peg-dir --with-zlib --enable-track-vars --with-mysql=/usr/include/mysql --with-xm
l --enable-xml --enable-safe-mode
上面地址MYSQL难道是错的?
--
FROM 130.88.102.*
[root@Zzone ~]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/my
sql/mysql.sock' (2)
这个是怎么回事呀?
【 在 ukbee (小蜜蜂) 的大作中提到: 】
: checking for int8... (cached) no
: checking base type of last arg to accept... (cached) socklen_t
: checking return type of qsort... (cached) void
: ...................
--
FROM 130.88.102.*
问题解决了
得restart一下mysql
[root@Zzone ~]# /etc/rc.d/init.d/mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
[root@Zzone ~]# mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.1.11
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
【 在 ukbee (小蜜蜂) 的大作中提到: 】
: [root@Zzone ~]# mysql -u root -p
: Enter password:
: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/my
: ...................
--
FROM 130.88.102.*