-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error establishing a database connection when cloning repo #159
Comments
Hi @josuevalrob, can you check the |
No, it gives me errors doing the |
@josuevalrob at first I think you must try a MySQL connection with the mysql command in your terminal, doing this we can understand if the problem is MySQL or Versiopress. |
It seems you have a wrong file or folder permissions setted. |
I tried that, and works fine.
I will test that |
@zauker @borekb I had changed the permissions and after running the Another clue is:
If my database is working on port 8889. Is this a problem?. In the last hours, I was able to clone the development site into my machine and installed it manually, (changing route variables from the database, etc). The site is working, and I can clone and push code with git. But when I try to use
This is my site URL: http://localhost:8888/clinica And this is the command that I tried to run in the morning: I tried changing the localhost port, to Any idea? BTW: I have installed AcquiaDevDesktop (is like another Mamp). But one friend of mine has it too and doesn't have any problem. |
From what you say, your site URL is not |
I had tried including the port, but nothing change...
|
Could you please post your Thanks. |
Simple:
And yes, I can run:
But once inside, I check for the ports:
With all this, I went into the system preferences from MAMP, and yeah, the apache port was set to Now, the main route is: But the problem perssist. I am trying this:
|
all the wp-config.php
|
There are still suspicious things, for example, you say that your MAMP is configured to run Apache on port 8888 while your URL You could try downloading fresh & clean WordPress, extract it to a folder under your web root, copy your |
Hi @josuevalrob, did you manage to solve this issue? |
no. Maybe is something about my localhost configuration. I am working with docker right now. |
Following up here, having a similar issue.
returns
But I know my database params are correct because I'm seeing the wordpress install screen |
Any news? I have the same issue. Can install wordpress with the same wp-config.php but not run vp restore. Get an "Error establishing a database connection". I run Mamp Pro on default ports of the services. (HTTP 80, 443; MYSQL 3306) |
Same error here. Database connection works fine, but wp vp restore-site gives "Error establishing a database connection". Tried all the methods outlined everywhere I could find them, but can't escape that error. I'd LOVE any help on this! |
I am working on different environments, all of them works perfectly fine, so maybe is a problem with my system.
After cloning the repository, creating the config file pointing into an empty database, I try to run the
Restore Site
command.wp vp restore-site --siteurl=http://localhost/clinica/ --require=wp-content/plugins/versionpress/src/Cli/vp.php
But it doesn't work, and gives me this error:
The MySQL credentials are fine. I had tried to include the port on the MySQL hostname, but nothing happened. Any idea?.
The text was updated successfully, but these errors were encountered: