#Mysql -u root error
97 messages · Page 1 of 1 (latest)
I think that MySQL did not install in your platform
didn't you use xampp for server program?
Yes, sir. Im using xampp
ah, so why do use this command?
My worry here is that I can create the database through localhost/phpmyadmin but I'm worried that I might have a problem when we go to the "Migration" stuff (tho I dont know about it yet)
Im sorry. Let me try the command on powershell as well
excute your command in powershell
The tutorial i'm following executed "mysql -u root" first in powershell before creating database on it
I'm kind of just trying to follow everything he does hehe
Yes first screenshot is in powershell sir
Yeah, you're following a linux tutorial 😄
But the result is kinda too many than what he got
Let me show it to you to confirm if it should be the expected result
Thank you so muuuuch
Your best bet, is look at the Laravel Sail guide, as it uses Docker and gives you a Linux environment.
Windows has historically not played as nicely
Im not gonna send all anymore
It gave me tons of this
Is this the expected result I should get?
The tutorial i'm following only got this
Still can't create database 😭
you're not in mysqladmin yet#
Check in Xampp to make sure that the mysql server is running
can you connect mysql by using navicat?
What's weird is
He was on this directory when he used the command
Then became here when after he entered it
this is directory root
Is it just me, or does that look like a really old version of Xampp (granted I've not touched it in about 10 years)
I am not familiar with navicat sir
The tutorial I'm following is 3 years ago, this xampp im using I just downloaded it last year
Yes sir and after he used mysql -u root he got changed into that mariadb none
yeah he used MariaDB not MySQL
In CMD, navigate to the directory you installed mysql in (probably c:\Program Files or similar)
C:\xampp\mysql\bin
This one?
Wahey
If that's what you're going to be working in
Yes thats where I'm working in
you should only need this for the first bit fortunately 🙂
once you've got the databse/user created etc, you'll be using migrations etc
So everytime I have to migrate i will redirect to this first?
no
Yes that was my worry 😭
when you migrate, you'll use artisan
I see I see
from vscode, in the base of your application
thank you I learned about it from you
I see I see. So I actually only needed to do this for creating the database on terminal like how he did?
I'm not getting the "Query OK. 1 row affected (0.001 sec) yet tho
😭
Still stuck on this
Database still not on phpmyadmin yet too
check your DM
first create your DB
and then migrate
Yes sir. But tbh, I'm only following this to be able to create DB on terminal
But I can just create it through phpmyadmin
Do I really still need to do this? (be able to create DB through terminal)
Will it be necessary for me in the long-run?
Tried it again and still stuck here 😭
Nvm
I just forgot the semicolon