• OK, this is not a specifically WordPress issue…

    I’m wanting to install a copy of WP on my development server (Localhost). I’ve downloaded and unpacked the WP source code. I’ve set up a PHP 7.3 environment using Vagrant and Virtualbox. I’ve typed in the IP address for localhost and I’m getting a WordPress config screen. I’ve entered the Database details I’ve set up using SequelPro. And this is where the wheels come off. My Database apparently doesn’t exist.

    Which isn’t surprising because SequelPro can’t connect to it either (it doesn’t exist). So how do I create it?

    What am I missing? Any clues?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @mikehenden — You probably need to provide more details about your setup.

    Did you write the Vagrantfile or did you get from somewhere else? What is your base box? (config.vm.box?). Can you share a Gist of your Vagrantfile?

    You say you created a database in SequelPro, correct? What did you name it?

    Then you said you cannot connect to the DB; how did you create it if you cannot connect to it?

    I assume you create and configured MySQL in your Vagrantfile? Or are you trying to use a MySQL installed on your localhost?

    Thread Starter mikehenden

    (@mikehenden)

    Standard Vagrantfile that I have used many times (in the creation of Silverstripe sites). Base box is silverstripeltd/dev-ssp

    mhdesign Vagrantfile

    I named DB WP_Client (unique name)

    I entered user and password, location is Localhost

    From what I’ve seen this is all I need to do?

    Or is there a Base Box that plays nicer with WP?

    • This reply was modified 3 years, 1 month ago by mikehenden.
    • This reply was modified 3 years, 1 month ago by mikehenden.
    Thread Starter mikehenden

    (@mikehenden)

    Hmmm, just found WP test I did in 2017 which ran fine. That was created with the MAMP environment which included mySQL. But I don’t use MAMP any more…

    Thread Starter mikehenden

    (@mikehenden)

    OK, I searched for a WP-compatible Virtualbox which led me to http://vccw.cc/. Grabbed the ZIP file and ran:

    Mikes-Mac-Pro:Wordpress mikehenden$ vagrant box add vccw-team/xenial64
    ==> box: Loading metadata for box 'vccw-team/xenial64'
        box: URL: https://vagrantcloud.com/vccw-team/xenial64
    ==> box: Adding box 'vccw-team/xenial64' (v20180107) for provider: virtualbox
        box: Downloading: https://vagrantcloud.com/vccw-team/boxes/xenial64/versions/20180107/providers/virtualbox.box
    Download redirected to host: vagrantcloud-files-production.s3-accelerate.amazonaws.com
    ==> box: Successfully added box 'vccw-team/xenial64' (v20180107) for 'virtualbox'!

    I then attempted vagrant up -- provision

    Mikes-Mac-Pro:Wordpress mikehenden$ vagrant up --provision
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'base' could not be found. Attempting to find and install...
        default: Box Provider: virtualbox
        default: Box Version: >= 0
    ==> default: Box file was not detected as metadata. Adding it directly...
    ==> default: Adding box 'base' (v0) for provider: virtualbox
        default: Downloading: base
    An error occurred while downloading the remote file. The error
    message, if any, is reproduced below. Please fix this error and try
    again.
    
    Couldn't open file /Users/mikehenden/Sites/Wordpress/base

    Can anybody see what I did wrong?

    • This reply was modified 3 years, 1 month ago by mikehenden.
    • This reply was modified 3 years, 1 month ago by mikehenden.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot create Database’ is closed to new replies.