Quantcast
Channel: SKDavis
Viewing all articles
Browse latest Browse all 28

MariaDB • Re: Connecting to MariaDB

$
0
0
Looking at your code it appears you writing a program. If that's the case I may not be able to devote enough time or answer all your questions.

That said, connecting to MariaDB is pretty straight forward. Try this website with some nice tutorials for connecting to the MariaDB database. This article has additional information on variables and sessions.

Here are some additional resources about session information and this one from W3schools.

If you cannot connect using the example above, check your user account and database to make sure it is set to localhost. You should also use localhost with the port number like localhost:3306 or localhost:3307 for the connection, if you are not explicitly specifying the port and socket in the connection code. Note the port number depends on which port is used on your NAS.

Good Luck!
But, I can't write on with that code :
The database must contain something to read from and write to. Did you manually create the necessary tables for your program or do you plan to use PHP to create the tables?

Statistics: Posted by steven — Fri Sep 03, 2021 1:42 pm



Viewing all articles
Browse latest Browse all 28

Trending Articles