Greetings to everyone again
There is a command to import the table in the bd-mysql site given to me in the last topic . There are 3 options:
- everything will work - and actually the data will be in the database / table of the site
- nothing will work - because This command is not allowed on the hosting.
- Nothing will work - if the command to register is incorrect (which often happens in my case)
(Yes, I understand those support taxis, but if there are many hosts, I want to do without phone calls)
Is it possible to check the support of this command on a hosting with any PHP script? Is it supported or not, and if it is supported, is there any error in the execution or not?
// теория, импорт таблицы в бд сайта system('mysql -u <user> -p<password> dbname < filename.sql'); // практика (myuser, mypass, mybase, filename.sql - пользователь и пароль пальзователя бд, сама бд, имя файла бд) system('mysql -u myuser -p mypass mybase < filename.sql');