Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

warpig's avatar
Level 12

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

0 likes
29 replies
lemmon's avatar

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's avatar
Level 12
warpig@DESKTOP-BR5EUFO MINGW64 /C/wamp64/www
$ ls
add_vhost.php  index.php         testmysql.php  wampthemes/
favicon.ico    test_sockets.php  wamplangues/

lemmon's avatar

@warpig

create a project inside the www folder or move your project that you wan to use into the www folder.

lemmon's avatar
lemmon
Best Answer
Level 28

@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

warpig's avatar
Level 12

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 
lemmon's avatar

@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.

lemmon's avatar

@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.

warpig's avatar
Level 12

@lemmon I moved my project inside this directory, now do I want to use VirtualHost by IP? It's optional.

warpig's avatar
Level 12

Hello @lemmon the files have been modified. Virtual host videotheque was created am I done ? hehe

lemmon's avatar

@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

lemmon's avatar

@warpig

Now open a browser and type the name of the virtual host that you used in the address bar followed by /

warpig's avatar
Level 12

Yep I see this directory opened up in the browser now.

@lemmon what about the database? how do I set it up??

lemmon's avatar

@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"

lemmon's avatar

@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.

lemmon's avatar

@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.

1 like
lemmon's avatar

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.

1 like
lemmon's avatar

@warpig

This should hold you over till you get your charger, I may switch to mac myself.

1 like
warpig's avatar
Level 12

Yes, I hope I don't encounter new problems regarding OS duties. :-) your help greatly improved the project.

1 like

Please or to participate in this conversation.