Creating a database on Windows setup for Laravel I have my server finally up and running, I can run various commands such as composer --version php -v and php artisan serve problem is I don't know how to set up the database, i find myself in a situation where I need to use a Windows Machine (not my first choice) and I know next to nothing about running a Laravel project, on the Mac I use Sequel Pro, what is the equivalent of this on Windows? Could I use a program like that here on Windows? Thank you
@warpig
start wamp, click on the green icon.
from git bash cd into C:/wamp64/www
now you are in the server.
You can mv the project into the www folder or create a new project inside www
let me know when it is in there.
warpig@DESKTOP-BR5EUFO MINGW64 /C/wamp64/www
$ ls
add_vhost.php index.php testmysql.php wampthemes/
favicon.ico test_sockets.php wamplangues/
@warpig
create a project inside the www folder or move your project that you wan to use into the www folder.
@warpig
Click on the green icon and choose
Your VirtualHosts
then choose
VirtualHostManagement
that opens up Add a VirtualHost page in your browser
add the name of your project
Name of the Virtual Host No space - No underscore(_) Required
add the full path to the public folder in
Complete absolute path of the VirtualHost folder Examples: C:/wamp/www/projet/ or E:/www/site1/ Required
C:/wamp64/www/NameOfProject/public
let me know when you got that done
add the full path to the public folder in
Where the Laravel project is? Or do I need to create a new folder in this directory, referencing the public folder/directory?
C:/wamp64/www/myproject/public
@warpig
You have to create a project or move an existing project into the www folder before you create a virtual host that points to it.
@warpig
let me know when you get the virtual host created. in wamp
@warpig
don't forget (I should have told you to) press the "Start the creation of the VirtualHost" button after you make the correct entries.
@lemmon I moved my project inside this directory, now do I want to use VirtualHost by IP? It's optional.
Hello @lemmon the files have been modified. Virtual host videotheque was created am I done ? hehe
@warpig
once you have created the virtual host
right click on the green icon and choose tools then way at the top click on Restart DNS
@warpig
Now open a browser and type the name of the virtual host that you used in the address bar followed by /
Yep I see this directory opened up in the browser now.
@lemmon what about the database? how do I set it up??
@warpig
Ok you should see the hompage, so that means you forgot to add public on the end of
C:/wamp64/www/myproject/
C:/wamp64/www/myproject/public
so now you have to edit it and then "Restart DNS"
@warpig
Yes
Then
Restart DNS
Then start over
@warpig
You can add as many projects and as many virtual hosts as you want inside wamp.
there are database managemant tools inside the green icon.
@warpig
Do you know how to use phpmyadmin?
or a command prompt to create databases?
click on the green Icon and there you will find all the tools you need to create a database.
Mr. @warpig
I gave you in 24 hrs what took me a whole lot longer to figure out.
BTW I am in the same timezone as you
Good luck Hope I helped you.
You helped me a lot @lemmon can't thank you enough.
@warpig
This should hold you over till you get your charger, I may switch to mac myself.
Yes, I hope I don't encounter new problems regarding OS duties. :-) your help greatly improved the project.
Please sign in or create an account to participate in this conversation.