I've opened an account with "https://www.infinityfree.com/", and I created a MySQL database (just for test), then with phpMyAdmin I created a table
Now I'm trying to access it with PB, using the following:CREATE TABLE SensorData (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
sensor VARCHAR(30) NOT NULL,
location VARCHAR(30) NOT NULL,
value1 VARCHAR(10),
value2 VARCHAR(10),
value3 VARCHAR(10),
reading_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
)
Code: Select all
UseMySQLDatabase()
If OpenDatabase(0, "host=http://morisaab.42web.io/sql205.infinityfree.com port=3306 dbname='epiz_32155036_morosh_db1'",
"epiz_32155036", "5aRiHilnkxZDe")
Debug "Connected to MySQL"
Else
Debug "Connection failed: " + DatabaseError()
EndIf
Certainly, I'm missing somethingConnection failed: Plugin http could not be loaded: The specified module could not be found. Library path is 'lib/mariadb/plugin/http.dll'
Any help is appreciated.
Thank you