This issue happened when the site transfered from a plesk server to a cpanel.
All the site was filled with \r\n\r\n\ .I deleted all of them inside in the site but DB is filled with them. The issue is that when you make and new order in the NAME LAST NAME fields they appear in front of them \r\n\.
[EDIT] Transfer was made manually (downloaded in my pc and then uploaded via ftp) Database imported via ssh
I am not sure for this but i think that the DB was like this before transfer but this doesn't made any problem in the site.
Can someone help me how to remove them?
I literally had the same thing today setting up a local version. I thought it was an environment issue, until I compared the content in a DB entry to my remote.
I had done a quick dump from PHPMyAdmin, as soon as I connected via Sequel Pro and got a dump that way, all was fine. This would mirror what #ceejayoz is recommending, just different way.
Related
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 :)
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 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.
Seen some other questions regarding this but not sure what I am doing wrong. Here is what I've done:
downloaded and unzipped a fresh install of wordpress to /Sites/wordpress
Started MAMP and set document root to above
Opened up phpmyadmin and created a new database named the same as the database I want to import. (I figured I did not need to change the url's in the older database because they will be the same on my computer? 'localhost/mysite')
Imported localhost1 database to newly created database
I know that user and password created are root, but I created an additional user and password to mimic what was in the wp-config of the original site (localhost1). I also changed localhost2's wp-config DB name, user, password to match that of localhost1 so that they are the same.
From this point I try and go to http://localhost:8888 or localhost/mysite but I basically get a 'This webpage is not available' screen as if I'm not online.
Any ideas?
This might have to do with variants serialized in the database even if the URL paths stay the same. Try taking the localhost1 database and migrating to localhost2 after using a serialization tool like this.
I realize you are not changing URL paths, however I've read that tables are all serialized so it's worth a try.
The problem in my opinion is not in the database, because WP will tell you if it is.
Problem must be in your local server configuration. In Windows I made different folder for different projects and access them like localhost/project1, localhost/project2 etc.
I don't know how are things in Mac, but must be the same. So try to start a fresh copy of WP in your new localhost, and then import database from first project.
When WP first starts creates .htaccess file with modrewrite, so you can also check current .htaccess file and rules there.
I have my site up and running, and I need to change now database to outside host I just purchased, but it keeps showing error...
I use CakePHP, I configure database.php file
Funny part is that layout works, it shows as it's new database selected, but view inside isn't working, it keeps telling me that there is no that file found...
I don't know what is relation between database.php and files, but it simply won't work...
If I'm move to new database host, what should I change beside database.php?
Is CakePHP caching data somewhere or something that I should change/delete/update?
Or is there another file that should be changed?
Please help!
I need this, users are on site and keeps seeing errors!
Possibilities: If you moved from a windows test server to a Linux production server, you could have case differences in your names.
Another thought is that you did not actually upload all the code files to the server.