Access MariaDB Server
mysql -u root -p
Create new database
CREATE DATABASE bdhostidb;
Check whether the database created
SHOW DATABASES;
GRANT ALL PRIVILEGES ON 'sqI_bdhositit_co'.* TO 'sqI_bdhositit_co'@localhost;
by dev
Access MariaDB Server
mysql -u root -p
Create new database
CREATE DATABASE bdhostidb;
Check whether the database created
SHOW DATABASES;
GRANT ALL PRIVILEGES ON 'sqI_bdhositit_co'.* TO 'sqI_bdhositit_co'@localhost;
by dev
By default, CentOS 7 is shipped with MariaDB 5.5. MariaDB 10.x version is a drop-in replacement for MySQL 5.5-5.7.
Automatic method
Note: The script below is applicable only for upgrading default MariaDB 5.5 to the MariaDB 10.5 version, for other cases apply the steps from the Manual Method section. Make sure Obsidian 18.0.30 or later is installed on the server.
wget https://raw.githubusercontent.com/plesk/kb-scripts/master/c7-mariadb-10-5-upgrade/c7-mariadb-10-5-upgrade.sh && chmod +x c7-mariadb-10-5-upgrade.sh
./c7-mariadb-10-5-upgrade.sh
by dev
We need to clean the YUM cache to reclaim the disk space used or to fix some errors due to corrupted metadata files.
yum clean packages
yum clean headers
yum clean metadata
Clean database cache yum clean dbcache
Clean expire cache yum clean expire-cache
yum clean all
Done!
by dev
For Windows, make sure you have PHP installed and type this into command prompt:
C:\Path\To\php.exe C:\Path\To\Your\script.php
And for Linux/Unix:
php /path/to/script.php
by dev
The disable_function is used to stop certain dangerous PHP functions from executing.
Example of disable_function.
disable_functions = "exec, system"
Use the disable_functions directive in php.ini file to disable specific functions.
At least disable exec(), shell_exec() and system(). (If using WordPress).
disable_functions = "exec, passthru, shell_exec, system, proc_open, popen, curl_exec, curl_multi_exec, parse_ini_file, show_source"