PHP accesses the correct settings of mysql4.1 or more

xiaoxiao2021-03-06  41

Finally, PHP5 is implemented with PHPMYADMIN to be accessed by MySQL4.1.

Prior to this, the general prompt says that the mysql extension cannot be loaded when using phpMyadmin access. Several data is collected from the Internet, and it is not solved according to its method. Later, the phpinfo.php under the phpMyadmin directory was executed, and the extension_dir is always C: / PHP5, guessing the php.ini file information is not read at all. So I thought of PHPINIDIR D: / PHP / in the HTTP.CONF in Apache. So guess Apache will read the configuration file in this directory. Copy php.ini to the PHP installation directory D: / PHP The long-lost interface appeared. Can't help but happiness.

In addition, it is necessary to modify in the config.inc.php file, modify $ cfg ['servers'] [$ I] ['extension'] is 'mysqli', that is, using MySQLI extensions, no mysql extension. Because for MySQL4.1.3 or more, Mysqli extension is more excellent than MySQL extension performance.

Don't forget to copy libmysql.dll to the% system% directory. In addition, I also set up PATH = D: / PHP; D: / PHP / EXT;% PATH%, I don't know if D: / PHP / EXT does not work. The way PHPINIDIR is used does not need to place php.ini in a Windows directory.

转载请注明原文地址:https://www.9cbs.com/read-69696.html

New Post(0)