Connect fejler
Hejsa.Jeg har i snart 1 år haft et script, som afvikles på webhotel-1 til at kontrollere, om databasen kører på webhotel-2.
Fra i dag fejler scriptet, hvilket jeg ikke helt forstår:
På Webhotel-1 afvikler jeg et script, via Cronjob, hvor der tjekkes for adgangen til databasen på Webhotel-2:
$mysqli = new mysqli("mysql11.wannafind.dk", "bruger", "password", "database");
if (mysqli_connect_errno()) {echo 'Der opstod en fejl ved forbindelsen: ' . mysqli_connect_error();
Jeg får disse fejl:
Warning: mysqli::mysqli() [mysqli.mysqli]: Premature end of data (mysqlnd_wireprotocol.c:553) in /var/www/kalenderxxx.dk/public_html/tjek_cronjob.php on line 11
Warning: mysqli::mysqli() [mysqli.mysqli]: OK packet 1 bytes shorter than expected in /var/www/kalenderxxx.dk/public_html/tjek_cronjob.php on line 11
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2000): mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file in /var/www/kalenderxxx.dk/public_html/tjek_cronjob.php on line 11
Der opstod en fejl ved forbindelsen: mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file
Databasen ligger på webhotel hos Wannafind, og jeg mener ikke at have adgang til at ændre password eller filen my.cnf.
Adgangen til databasen fungerer i øvrigt fint, når jeg connecter via script, der ligger på samme webhotel som databasen.
Nogen løsning til, hvordan jeg connecter til databasen med et script, der ligger på et andet webhotel?