Fatal error: Call to undefined function mysql_connect()

hoangnam

Registered
Nov 9, 2020
3
0
1
Vietnam
cPanel Access Level
Root Administrator
When accessing the site, I get an error: "Fatal error: Call to undefined function mysql_connect ()". I create wordpress using WordPress Toolkit.

I tried to fix it in some ways like upgrade version php, enable pdo_mysql and nd_mysql and delete define ('WP_USE_EXT_MYSQL', true); in config.php but not

php: 7.2
WordPress: 5.6.2
Mysql: 5.6

Thanks everyone
 

Attachments

hoangnam

Registered
Nov 9, 2020
3
0
1
Vietnam
cPanel Access Level
Root Administrator
Thank you for your response.

I have fixed the above error. When I upgrade PHP version using Cloud Linux and WordPress crashes. My PHP with MultiPHP manager is normal

I don't know the reason why when upgrading PHP with CloudLinux failed