Answer the question
In order to leave comments, you need to log in
Why can't I connect the PHPMYADMIN database to the site?
There is a local computer with Debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux
Apache2 and Phpmyadmin are also installed. The site is working fine, no complaints. I'm trying to connect the base. I created a user in phpmyadmin, created a database, entered test data. I create a file on the site:
1.php
<?php
$conect = mysql_connect('10.114.4.69', 'admin', '12345');
$db = mysql_select_db('my_db_site');
if (!$conect || !$db) {
mysql_errno();
}else{
echo 'Все хорошо';
};
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question