How to Fix "Warning: mysqli_connect(): (HY000/1049): Unknown database 'ruff' "

How to Fix "Warning: mysqli_connect(): (HY000/1049): Unknown database 'ruff' "

Sam Explores

4 года назад

54,154 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Hedevin Daniel
Hedevin Daniel - 01.06.2023 00:43

Nice music .

Ответить
infven
infven - 27.11.2022 17:11

Excellent. Thank you!

Ответить
zoo
zoo - 20.03.2022 16:38

Thank you, you helped me

Ответить
Amar Mattaparthi
Amar Mattaparthi - 03.03.2022 10:23

getting this warning

Warning: mysqli_connect(): (HY000/1049): Unknown database 'train' in /opt/lampp/htdocs/connect.php on line 6
Error Connecting

after going to connect.php file with editor mode in 6th line what the details we have to provide?

$connect = mysqli_connect($hostname , $username , $password ,$dbname) or die("Error Connecting");

Ответить
Jeremih Larson
Jeremih Larson - 02.02.2022 17:41

Try changing the database name.This error occur when many people are using the same name on MYPHPADMIN.Use a unique name.
DONT NAME DATABASE THIS WAY: food-order
NAME IT THIS WAY: food_order
Thank me later.

Ответить
Himani Prajapati
Himani Prajapati - 29.12.2021 18:22

Hey! Both my names in "connection" file and PHPMyAdmin are the same. But I'm still facing the same issue. HELP

Ответить
Dhoj Bhandari
Dhoj Bhandari - 23.12.2021 04:15

Warning: mysqli_connect(): (HY000/1049): Unknown database 'polltest' in C:\xampp\htdocs\voting\connection.php on line 2

Ответить
Milica Vasovic
Milica Vasovic - 03.12.2021 00:15

Well this is if you dont have that database but I do have and I still get same error and for all others just dont get error for one database from project before. I dont know why

Ответить
Vikash Kumar
Vikash Kumar - 07.09.2021 08:11

thanks dude

Ответить
Suryakant nulkar
Suryakant nulkar - 29.08.2021 19:51

Hlo i am getting the same error plss help me...
Pls

Ответить
ultra
ultra - 01.12.2020 12:38

lel i entered wrong name

Ответить
Muhammad Ali
Muhammad Ali - 08.11.2020 08:17

i am your 100th subscriber. :)😘

Ответить
Rabin Pun
Rabin Pun - 22.07.2020 13:28

You are such a life saver man. thanks

Ответить
Gurtej Tiwana
Gurtej Tiwana - 14.06.2020 06:59

I still got an error message about UNKOWN DATABASE. This is how I fixed it....

Remove $db from the $conn line and hit save. My database was immediately connected.

Ответить
Ishita Shah
Ishita Shah - 08.06.2020 23:07

Check my.ini file of mysql and verify port number. Im most of the cases it runs on 3306 however if it is running on 3308 then edit your connection file:
$conn = mysqli_connect($server_name, $mysql_username, $mysql_password, $db_name, "3308");

Ответить
Злата Сальникова
Злата Сальникова - 25.05.2020 19:29

Спасибо огромное! После этого видео я решила переехать в Пакистан, видимо только тут способны помочь сделать лабы!!!!

Ответить
Jorge Daniel Villafañe
Jorge Daniel Villafañe - 19.05.2020 02:02

que pasa si me hace esto con una base de datos que si existe?

Ответить
Ramakrishnappa V
Ramakrishnappa V - 16.05.2020 12:02

Plz share hospital management system project using php

Ответить
M Bilal
M Bilal - 26.04.2020 13:13

what is ruff

Ответить
Abhishek Hole
Abhishek Hole - 21.04.2020 17:20

Thank Youvery very much this thing is really helping

Ответить
Deep Gandhi
Deep Gandhi - 16.04.2020 15:39

If anyone still getting error then try to create db in MariaDB once and then try. It resolve my error as it check db in MariaDB instead of MySql

Ответить
Niro Shan
Niro Shan - 13.04.2020 23:07

I'm having this problem almost 3 weeks can't fix till now.. 😭

Ответить
hyiiiqaL~~
hyiiiqaL~~ - 08.04.2020 15:19

my database name is right but it keeps saying Y000/1049): Unknown database 'pendaftaran' in C:\wamp64\www\pendaftaran\server.php on linY000/1049): Unknown database 'pendaftaran' in C:\wamp64\www\pendaftaran\server.php on line 7

Ответить
Shamim Ibrahim
Shamim Ibrahim - 08.04.2020 14:29

thanks vi

Ответить
jdjsajjd
jdjsajjd - 24.03.2020 21:25

I'm still having the same problem after doing this. Ive double checked it already. I'm using the same db name and unknown database is still there

Ответить
Aayush Raina
Aayush Raina - 20.03.2020 21:06

I don't see how this is helpful. You just created the database and error showed up because you didn't have it earlier. What about when this error is showing up even after i've created the database and checked it seperately using cmd too?

Ответить
Rohith Samuel
Rohith Samuel - 20.02.2020 16:11

This is amazing u saved my life

Ответить
Kween Ahlem Bensi
Kween Ahlem Bensi - 11.02.2020 04:41

thank you

Ответить
Abdullah Abuaziz
Abdullah Abuaziz - 27.11.2019 19:49

that is actually working, I was actually stuck in that and I was about to quit programming due to it. u helped me thank u !!

Ответить