sql server
Posted by: ahmad127 (5.219.217.---)
Date: December 23, 2019 09:42AM

Hi . I installed the latest version of wamp software. I can't connect to the database or table that I made and send message 1049.
<?php
;
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "a";
$connection = @mysqli_connect($dbhost,$dbuser,$dbpass,$dbname);
if(mysqli_connect_errno()) {
die("database connection failed : " . " " . mysqli_connect_error() . " (" . mysqli_connect_errno()."winking smiley"
);
}

?>

//////////////////////
not condatabase connection failed : Unknown database 'a' (1049)

Re: sql server
Posted by: Otomatic (Moderator)
Date: December 23, 2019 09:54AM

Hi,

Right-Click wampmanager tray icon -> Help -> MariaDB - MySQL

This forum is not intended to teach you how to use PHP or MySQL.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.0 32 bit - Apache 2.4.41 - PHP 7.4.3/7.3.15/..../5.6.40 - MySQL 5.7.29 - MariaDB 10.4.12
Wampserver 3.2.0 64 bit - Apache 2.4.41 - PHP 7.4.3/7.3.15/..../5.6.40 - MySQL 5.7.29/8.0.19 - MariaDB 10.4.12
PhPMyadmin 5.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



Edited 1 time(s). Last edit at 12/23/2019 09:55AM by Otomatic.

Re: sql server
Posted by: ahmad127 (5.219.217.---)
Date: December 23, 2019 10:49AM

tank you

Sorry, only registered users may post in this forum.