Connecting to database | Laravel 10 Tutorial : #8

  Рет қаралды 33,066

Yelo Code

Yelo Code

Күн бұрын

Пікірлер: 36
@lawp3537
@lawp3537 11 ай бұрын
2 years with PHP, sure loving Laravel, thank you!! Yelo
@yelocode
@yelocode 11 ай бұрын
Thanks for watching
@sebaszwarc
@sebaszwarc 10 ай бұрын
what a shit framework
@armin_usa
@armin_usa 9 ай бұрын
why@@sebaszwarc
@sebaszwarc
@sebaszwarc 9 ай бұрын
@@armin_usa 1. It does not return informative error message when problem may lay in database config 2. Difficult to install on other machine than local host
@nikolamiletic6991
@nikolamiletic6991 Жыл бұрын
Stating to learn PHP and this tut is very detailed and informative and easy to follow
@yelocode
@yelocode Жыл бұрын
Glad the videos are helpful. Thank you for watching.
@nikolamiletic6991
@nikolamiletic6991 Жыл бұрын
@@yelocode Can you please show how to connect database with postgres cause im having some issues?
@yelocode
@yelocode Жыл бұрын
For postgres, please set the following in your .env file. DB_CONNECTION = pgsql DB_PORT = 5432 However, postgres does not have a default root user, so you need to create a user account and database yourself for local development. The remaining configs such user username, password, and database db will be what you have created it postgress. It would be alot easier to create a new user with a GUI for interacting with the database, something like pgAdmin Let me know if you still have issues, I will make a video on this.
@nikolamiletic6991
@nikolamiletic6991 Жыл бұрын
hey, sorry was busy. So I still have issues can you please make a video about when you have time ;D @@yelocode
@jymoshepherd3005
@jymoshepherd3005 4 ай бұрын
Great Tutorial Loving i. No error so far on my case. Learning Tutorial by tutorial
@amsyar_nz
@amsyar_nz 28 күн бұрын
sangkut dekat 2:00, macam mana nak set mysql?
@AvinashKumar-ps8ft
@AvinashKumar-ps8ft 3 ай бұрын
How to install your code (github) from fresh.. i accidently delete mine code? There is no .env file. i have my db in oracle. all tables are intact in oracle DB..
@engenglish610
@engenglish610 Жыл бұрын
Thank you for this valuable content 👍 Question 1: it's possible to use Redis as my principal database with Laravel? Question 2: I know it's not recommended to use Redis as main database for website like Craigslist but I want to check if I can provide with redis a real time experience! What do you think about this?
@yelocode
@yelocode Жыл бұрын
Thanks for watching. I personally have not used redis as main database driver, only for caching. By default laravel does not support using redis as datbase driver, but there is a package for it : github.com/bilaliqbalr/laravel-redis
@FilipStraka-w6g
@FilipStraka-w6g 6 ай бұрын
I have question Yelo! Its problem when i have different tables after migration, as you ? Mine are: | cache | cache_locks | failed_jobs | job_batches | jobs | migrations | password_reset_tokens | sessions | users
@lymengtek3986
@lymengtek3986 9 ай бұрын
Can laravel be use with mongoDB and if is possible, how do i do it?
@yelocode
@yelocode 9 ай бұрын
Yes, it's possible, the mongo db website has a pretty good tutorial on it : www.mongodb.com/compatibility/mongodb-laravel-integration
@rfldno
@rfldno 3 ай бұрын
I just started learning laravel, and I am concerned about the username in mysql and in the vscode. Does our username and password have to be the same as the one we set up on our sql?
@yudanadhika4479
@yudanadhika4479 2 ай бұрын
of course
@HollyDiver-pn2ep
@HollyDiver-pn2ep 6 ай бұрын
what if I got xampp instead of mysql?
@yelocode
@yelocode 6 ай бұрын
The process should be the same. Just make sure you have started the mysql from your xampp control panel
@ebubeanthony6699
@ebubeanthony6699 10 ай бұрын
Hi, Please how can I connect my laravel project to mysql if I'm using xampp on my pc.
@wimu7957
@wimu7957 9 ай бұрын
hy i know its late but u just create a laravel project run migration and it will ask u if u want to creat the db that was in ur .env then u write yes and boom open phpmyadmin ur db should be there
@walaawalaawlwl9935
@walaawalaawlwl9935 8 ай бұрын
​@@wimu7957please i don't understand can you please tell me about this please
@arundivakar3644
@arundivakar3644 Жыл бұрын
Getting error "mysql : The term 'mysql' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1" while trying to connect mysql
@yelocode
@yelocode Жыл бұрын
This error is probably because you don't have mysql in your path or haven't installed mysql. This tutorial might help you fix the issue : maheshwaghmare.com/mysql/how-to/not-recognized-as-an-internal-or-external-command/
@marconarca2706
@marconarca2706 9 ай бұрын
I am getting this error "could not find driver (Connection: mysql, SQL: select * from information_schema.tables where table_catalog = db0sdbuq6rv59d and table_schema = public and table_name = migrations and table_type = 'BASE TABLE')" using xampp
@yelocode
@yelocode 9 ай бұрын
Thanks for watching. Make sure you have mysql started in xampp and also check this solution on stack overflow I think it should help solve your problem stackoverflow.com/questions/42557693/laravel-pdoexception-could-not-find-driver
@marconarca2706
@marconarca2706 9 ай бұрын
@@yelocode yeah I already tried it however I am using windows and I tried looking at their solution and the only thing it is sensible to me is that php.ini which I already did uncomment but still not working
@hernanidomingo35
@hernanidomingo35 9 ай бұрын
"show tables" does not show any table to me. i followed every step
@hernanidomingo35
@hernanidomingo35 9 ай бұрын
i sh8t, i forgot the semicolon. lol
@yelocode
@yelocode 9 ай бұрын
It happens to the best of us.
@sebaszwarc
@sebaszwarc 10 ай бұрын
Why connecting to database is lesson 8? this should be on the beginning especially when Laravel cannot connect to mysql even if this connects in terminal. No solution worked and unforntunately your tutorial does not answer the problem either which is bad from educational perspective.
@VWinck
@VWinck Ай бұрын
dude, I am literally using mysql, go seach your stuff instead of putting the problems in others.
Creating Models (Crud)  | Laravel 10 Tutorial :  #9
19:25
Yelo Code
Рет қаралды 28 М.
Blade templates & Layouts | Laravel 10 Tutorial #7
14:27
Yelo Code
Рет қаралды 47 М.
Wall Rebound Challenge 🙈😱
00:34
Celine Dept
Рет қаралды 19 МЛН
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 219 М.
Learn SQL Basics in Just 15 Minutes!
16:57
Kenji Explains
Рет қаралды 183 М.
Databases & Migrations | Laravel For Beginners | Learn Laravel
15:09
Code With Dary
Рет қаралды 55 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,6 МЛН
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 108 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 440 М.
Controllers & MVC | Laravel 10 Tutorial #5
11:01
Yelo Code
Рет қаралды 32 М.
Best Of The Internet (2024)
30:13
Daily Dose Of Internet
Рет қаралды 1,7 МЛН
Wall Rebound Challenge 🙈😱
00:34
Celine Dept
Рет қаралды 19 МЛН