我刚刚在Fedora 23框上编译了PHP7.0.4,创建了一个测试脚本来连接到本地主机上的MySQL,我得到的只是:
Error: Unable to connect to MySQL. Debugging errno: 2002 Debugging error: No such file or directory
根据PHP,这是因为PHP找不到/tmp/mysql.sock,所以文件确实存在,所以我重新配置了MySQL和PHP,让它们指向同一个文件,但没有成功,这就是/tmp展示的关于mysql.sock的内容:
lrwxrwxrwx 1 root root 25 Mar 2
我有这个登录函数:
public function members() {
if($this->session->userdata('is_logged_in')){
redirect('pag/index.php');
}else{
redirect('main/restricted');
}
如果我成功登录,这将使我获得404!但如果我尝试这样做:
public function members() {
if($this->session->userdata('is_l
我正在尝试安装php 5.3.X,而我使用centos使im获得了这个错误。
ext/mysql/php_mysql.o: In function `php_mysql_do_connect':
/root/php-5.3.25/ext/mysql/php_mysql.c:965: undefined reference to `_mysqlnd_init'
/root/php-5.3.25/ext/mysql/php_mysql.c:982: undefined reference to `mysqlnd_connect'
/root/php-5.3.25/ext/