I downloaded a WordPress website and copied it to a folder on localhost.
However the it's asking me for a database name which is WordPress as I created a database in phpmyadmin.
Then it asks for User Name : no matter what i type it does not accept it, the same goes for Password: and Database Host Name. I have no password on phpmyadmin i login as root and there is no password.
Can anyone help me with this please?
If you're really sure what your username and password are and still not working, you should download again wordpress... I've setup a few times Wordpress locally and I found it very simple. (Change directory name, different database name and so on).
Related
I had setup wordpress project in main url : www.example.com with help of cyber panel in aws-ec2 free hosting.
I had domain and setup wordpress via cyber panel.
Now, I want to setup small php project inside this like: www.example.com/mysmallproject
I had create folder : mysmallproject and add all files. its working well. I can access php file via browser.
ISSUE : I had created database via cyberpanel and assign domain.
It has username and password.
NOW, I need to access database. it requires username, password and database name and server name.
I have username, password, database name. But i dont know "SERVERNAME". I tried to get servername from my wordpress configuration file but its not working. Any suggestion will be appriciated. Thanks
The server name is your EC2 IP address or you can use "localhost".
I was following this guide: http://mrbool.com/how-to-create-a-login-page-with-php-and-mysql/28656 to create a login page. I followed everything to the letter but when I uploaded the two files (login.html and connectivity.php) to my public_html folder of my godaddy linux shared hosting server and attempted to test it out, I was met with a blank page when I navigated to: mydomainname.com/connectivity.php. Now after reviewing the code within connectivity.php, my suspicion was that my mistake lay somewhere in my database setup. This is what I am referring to:
I changed the database name "practice" to the actual name of my database that I created through godaddy. I got a little bit stuck on the "DB_USER" section though. I added a user to my database through godaddy's mysql application and changed the name "root" to the name I set for the user. Here is what I'm referring to:
After I did that I changed the "DB_Password" to whatever I had set for the username's password. I thought at this point I was done but when I attempted to navigate to the page, it still didn't work. I know the "DB_HOST" is set to localhost but I wasn't sure what I was supposed to change that to since phpMyAdmin panel stated the following: "Server:localhost" even though I'm using a server. I added all the tables and users to the mysql database correctly so I really think this has something to do with my configuration. If anyone could help me I would greatly appreciate it. Thanks.
I have a hosted drupal website (in zipped folder). I wish to copy it on localhost using XAMPP.
I have extracted the website folder (which is "myFolderName") and copied it to C:/xampp/htdocs.
But when I type localhost/myFolderName, it gives
Site off-line
The site is currently not available due to technical problems. Please try again
later. Thank you for your understanding.....
The mysql error was: Access denied for user 'newdb'#'localhost' (using password: YES)"
To overcome this, I checked the settings.php file and it had $db_url = 'mysql://newdb:mypass#localhost/newdb;
So I tried to create a new user named newdb with password mypass on a newly created database newdb. But how can I import database and remove that error I listed above ?
I searched the myFolderName folder for .sql files, there are no such files to import in xampp.
I have mysql user and password both of the hosted website and when I remote login (using ssh on ubuntu), then I see a few databases and many tables but I am unable to locate these in myFolderName folder.
I just want to change a few images, add a few links and paragraphs and some php scripts to my website by first trying it on localhost before doing it directly on the hosted drupal website.
Moreover, the hosted drupal interface( at aws.amazon.com )does not allow to change certain portions of my website as the original hosted website was made using both hardcoded html and other scripts along to drupal editing.
Please help me as I am very new to drupal and want to change on my localhost (XAMPP) using html and php codes rather than drupal interfaces.
Finally, found it myself !
I used mysqldump -u newdb -p newdb > mydatabasefile.sql
where the first instance of "newdb" was my username and the second instance of "newdb" was my database name.
It prompted for a password which was "mypass" in my case.
Later, I imported this .sql file into my "newdb" database already created in xampp
Today I was trying to install a new copy of WordPress on my local machine. There was a working copy of a site in there that I accidentally deleted. So I tried to reinstall WordPress on that existing database. Everything was fine, but in the last stage of the installation a weird message was coming up. It was saying Please provide a valid username. and there wasn't a field to provide a username, instead the text User(s) already exists. I have never come around this and neither have I heard of it. I am curious to know why WordPress is wanting a username when the field is locked. Is this a bug or something else?
Thanks in advance.
I am adding this answer as this page comes up at the top of search engine results for "Please provide a valid username"
If your WordPress installation is in a subfolder of an existing website...
e.g. www.example.com/dev/
The username will not be accepted if you have a .htaccess file at the root of the website.
Rename the .htaccess file to something else.
Continue with the WordPress installation.
Then rename the .htaccess file back to what it was.
I've faced it a few days ago, fixed it this way.
1. At first exported (backup) old database.
2. Installed a new copy of WordPress with a new empty database (settings should be using your old database username, password, etc).
3. Imported the old database to new installation.
4. Uploaded the uploads folder (images) to new installation.
Problem solved, hope this helps!
I've just upload a WordPress project into a web server. Everything went fine with the exception of the User-Photo plugin. The problem I'm having is that its doesn't seems to find the basedir path. This is the error:
Upload error: Unable to place the user photo at: /var/www/clients/client2/web4/web/arsoblog/wp-content/uploads/userphoto/1.jpg
First of all, I don't know where this path is. Even on the local server, where the site is working good, is using the exact same path, which I can't find.
Maybe someone of you knows what could have changed from one server to the other. By the way, the blog is inside another site in the web server, which is developed using CakePHP.
EDIT --- I'm having the same problem with all the uploads!
The problem is in your upload directory. When we develop the WordPress site in localhost, the default upload directory will be point to your localhost only. When you move to online server, this directory path will not change.
To override this do the following steps:
Login to your cPanel/control Panel
Go to phpMyadmin
Select your database.
Go to wp_options table
On the second page (around 58th row) Edit 'upload_path'(For the first time this row may be blank).
Give your correct directory.Eg: /home/username/public_html/folder-name/wp-content/uploads
Change "username" and "folder-name". Username is usually the username you use to login to cPanel, or your domain’s control panel. Folder-name is used for the sites hosted in subfolders. If you hosted the site in root folder, remove it.
Here is a detailed tutorial How to move wordpress to a new server or host.
If you already used WordPress uploader in localhost, you need to do a search in wp_posts table and replace your localhost reference to your live site's reference. There are some plugin available to do these search and replace in database. Check this one
Hope this will solve your problem.
777 permissions are dangerous and not the correct fix for the issue. You will get hacked with 777 permissions. See Hardening WordPress « WordPress Codex
For solving this problem you have follow some step,
*Login to your cPanel/control Panel
*Go to phpMyadmin
*Select your database.
*Go to wp_options table
*On the second page (around 58th row) Edit 'upload_path'
*Give your correct directory.Eg: /home/username/public_html/folder-name/wp-content/uploads
then you shift your server See tutorial
for more
http://www.techyv.com/questions/error-when-running-wordpress-new-server