Unluckily I have deleted almost all users in XAMPP MySQL database. I have a wordpress sites working there, but I can't access phpmyadmin to edit database or even make a copy of it.
This is the error code:
New XAMPP security concept:
Access to the requested object is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
I can't use MySQL to add new user...
How can I fix that? I only know that I have to add a new root account to access phpmyadmin from local network.
And for future - Do I need to remove some users when I transfer my website from XAMPP server to web server to make it safe? Or All the root users can't be reached from third person in the web?
Thanks for Your reply,
Peter
OKAY, after solving it for 4 hours I have made something better... I used Wordpress plugin "Duplicator" and just copied my website. Then I deleted XAMPP and installed it once more. I have imported my website and now it works fine - phpmyadmin too :)
Related
I've got a live site, which I downloaded in order to be able to customize it more precisely by editing the code. I followed the steps of this tutorial.
What I've done so far:
Downloaded the files of my site.
Downloaded its database.
Created a new database (with the same name that is included in wp-config file).
Imported the downloaded database into the newly created one.
Edited the two entries according to step 5 in the tutorial and of course, added a new user with global privileges.
Edited the hosts file to have a custom domain.
Restarted Apache & MySQL (I use XAMPP).
Now it is still displaying the same error message, that a database connection could not be established.
There is "localhost" set up, but I am not able to use it, I can only connect to my offline sites by using 127.0.0.1.
I'd really appreciate your help.
I deleted database and db user of my WP website. My website stopped working.
I opened wpadmin.php and created database and user according to info in it.
Now when I try to open my website it redirects to
http://iiuischoolsryk.com/wp-admin/install.php
What should I do now? Should I proceed to Installation?
PS:
Although hosting provider is my best friend, he is not available to help
I have access to Cpanel, phpMYADMIN.
I have complete installation files of that particular wp theme.
All your previous data, unless backed up, is totally gone. You'll have your theme and plugins still in their directories, but no pages, posts, etc.
To get back to having a blank wordpress installation, do the following.
Create a new MySQL database, via phpMyAdmin if you like.
Create a new MySQL user, with password, and assign them permissions
to the database created in step 1.
Now run the 5 minute WordPress install with the database name, user
name, and passwordyou've just created.
I am by no means any bit of an expert and I am really hoping this did not just bite me! I have created a WP site on my computer locally thru WAMP. I was near completion and have a domain set up on GoDaddy that I wanted to transfer it to. This is a project that I am not always able to work on so sometimes I would forget my log in info for the phpMyAdmin. I recently did a tutorial that got me to reset my password which worked for accessing the files under the phpMyAdmin however I can no longer bring up my local copy of WP without getting this error - Error establishing a database connection. Not sure if when I changed my password if this caused an issue with how the local server was set up but I am at a loss after many hours of work.
I also unfortunately am unable to log into my phpMyAdmin and wouldn't even know where to begin. This is definitely over my head as far as technicality goes as I am probably not describing this the best way possible. Can anyone with suggestions please assist if you have had database issues on a local server thru WAMP and what is the best measure to ensure I have not lost all of my hard work?
Thank you in advance!
From what I got the issue is the local site . If so you need to go to your wp-config file in your word-press installation folder on your local machine. Edit the file using notepad. You should see a section with this part
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
Edit the password and your local install should work just fine.
Recently I setup a website on byethost.com using the CMS ezpublish. After a couple days of working on the site, byethost deleted the Mysql database. I still have all the FTP files but I can't log in as an admin because their is not Mysql database with all the users. Is there any way I can create a new Mysql database setup for Ezpublish. All I need currently is an admin account and whatever other information is essential to have for Ezpublish to run. Any response/ideas would be great.
Just create a new database
Then, for a plain site (not ezflow neither ezwebin) import those files : kernel/sql/mysql/kernel_schema.sql and kernel/sql/common/cleandata.sql in MySQL.
The admin username will be : admin and the admin password will be : publish
By the way, an other solution is to edit settings/override/site.ini.append.php and change this:
[SiteAccessSettings]
CheckValidity=false
to this:
[SiteAccessSettings]
CheckValidity=true
Reloading a page will lead to launch the setup wizard just like if it was a fresh install. (If it doesn't work, you may need to clear the cache by yourself and try again)
I recently switched from using XAMPP to WAMP on my Windows 7 machine so I can do fast switching of PHP versions.
I completely uninstalled XAMPP, but first I backed up my htdocs, apache and mysql directories just in case.
After I installed WAMP and had everything up and running, I figured I could just drop some of my databases from my old XAMPP install into the "data" directory of the mysql directory in WAMP.
So that worked and the database shows up in phpMyadmin, but there are no tables. Is this a permissions thing? Like maybe I don't have the same user in the new install of mysql? Or am I missing something?
Am I allowed to just copy MySQL databases from one data folder to another or does it not work that way?
Both instances are using MySQL 5.5 (at least that's what both README files say in both MySQL directories).
THANKS
When using phpMyAdmin out of the box so to speak in WAMP, MYSQL is installed as per its default installation with the root userid setup to have NO PASSWORD.
Some people seem to think they should make one up when they see the login screen, is that what you are doing?
When you do this phpmyadmin allows you to APPEAR to login but then as you do not have root's privilages you see almost nothing on its other screens and are allowed to do nothing.
Use
username = root
password = (leave this blank)
Then set a password, there is a link on the next page it presents. AND DONT FORGET IT!!!!
This generally isn't a good idea. RiggsFolly was asking about your table type because some table types are more forgiving than others. Other possible trouble spots include file system permission problems or MySQL permission problems (as RiggsFolly asked).
I'd suggest to do an export (as an SQL file) and import that for a complete solution.