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

preview_player
Показать описание
Connection failed: Unknown database 'ruff'

––––––––––––––––––––––––––––––
Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0
––––––––––––––––––––––––––––––

🎵 Track Info:

Title: Moving On (Instrumental) by MBB & Jonas Schmidt
Genre and Mood: Dance & Electronic + Happy

———

🎧 Available on:

———
Рекомендации по теме
Комментарии
Автор

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?

aayushraina
Автор

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 !!

a_abuaziz
Автор

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

milicavasovic
Автор

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

deepgandhi
Автор

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");

ishitashah
Автор

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.

jeremihlarson
Автор

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

dancewithhimani
Автор

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

zolotayaorda
Автор

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.

gurtejtiwana
Автор

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");

Mytourtrips
Автор

Warning: mysqli_connect(): (HY000/1049): Unknown database 'polltest' in on line 2

dhojbhandari
Автор

Thank Youvery very much this thing is really helping

abhishekhole
Автор

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

jdjsajjd
Автор

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

suryakantnulkar
Автор

my database name is right but it keeps saying Y000/1049): Unknown database 'pendaftaran' in on linY000/1049): Unknown database 'pendaftaran' in on line 7

hyiii
Автор

Plz share hospital management system project using php

ramakrishnappav
Автор

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

niroshan
Автор

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

jorgedanielvillafane