I have no very little experience with coding in general and no relevant experience with WordPress. This is my first attempt to set up a WordPress site. I am using Wamp server on Windows 10 and I followed a beginner tutorial on how to set up a local WordPress site.
I have set up a Wamp server and have WordPress setup running on my localhost. I get the error Can't select database when attempting to set up. The name of my database in MySQL has no spaces in it and it SEEMS that the database has privileges set for the default user of root, it says "ALL PRIVILEGES" I did some research and I think it is setting a config file to "localhost:3308" instead of "localhost" the posting describes users changing various elements of PHP files. to edit the database connection details "wp-admin_setup-config.php_step=1", another user changed the database host setting on the setup page, which I assume has something to do with Wamp Server.
WordPress Forum
Can't select database error.
I looked in the WordPress directories for several of the PHP setting files that they recommended in various forums and stack overflow discussions, And I don't know where to add this.
Thanks
Related
I am working on a WordPress project, the job is to deploy everything from the old server to the new server.
So I downloaded everything from the old server.
I deployed a WordPress project to paid hosting, I deployed manually by pushing all the public_html folder to the server.
First, without a database connection, it was showing me a database connection error but after the database connection, it is showing me a hosting page instead of my WordPress project page.
How can I fix it and is there a configuration that needs to be fixed?
Kindly guide me and help me in this matter.
Also is it a domain configuration issue?
The domain is configuration is on the old server and I didn't set it up for the new server yet.
Thanks.
I faced similar issues yesteday when i tried to move my woocommerce exercise from localhost to my domain(live hosting),broken all links,images,routes etc ...There is no way to fix all that whithout paid plugins, maybe someone can go through whole db and change URL-s,i cant,and after that, the question remains whether I have problems elsewhere in the local WP code,who know where in code i also have embed "localhost" URL.
I cant give you solution but i must share my frustration with this tehnology which doesnt allow normall development process like 1)development -> 2)testing -> 3)deployment .
There is a site at my job that has only been maintained by 1-2 developers for a while but as more developers are being added to it we want to implement git. The workflow we're looking for has everyone using a local copy that is connected to the same remote database. We can all push and pull code as needed while any database changes would be shared that way.
I'm running into a weird issue where many files are refusing to load or clicking on any link results in a redirect to the xampp dashboard.
I downloaded xampp and created a directory in htdocs called local_test. I downloaded all the sites files into that directory with ftp. Grabbed the dbs info from the host and whitelisted the outside ip address on the host.
I went into wp-config.php and changes all the db values so it connect correctly. Plus I added:
define('WP_SITEURL', 'localhost/local_test/');
define('WP_HOME', 'localhost/local_test/');
At first I was convinced it was a db issue, but I can connect to the database remotely just fine using mysql workbench so I doubt it's that. The footer and the header show up, just not much of the content in between and like I said whenever I click on a link it redirect to the generic xampp dashboard.
I am trying to get Wordpress working locally on my Mac. I've downloaded and installed Xampp and also the Wordpress module. But I'm not sure where to go from here, to actually get Wordpress working.
When I try to reach 127.0.0.1/wordpress/ and localhost/wordpress/ I only get the message "Error establishing a database connection".
I can reach PhpMyAdmin, enclosing a screenshot.
Screenshot from phpMyAdmin
I have no clue where to go from here. Do I need to make changes in some conf-files or something? This is the first time I'm doing this so sorry for noob questions, I'm not really a programmer, just want to be able to build my Wordpress sites locally... :)
You need to create a database within PHPMyAdmin, and then configure wp-config.php with the database information. By default, you may only have a file called wp-config-sample.php. Rename the file, and remove -sample from the file name.
The host name will be "localhost", since the database is locally hosted.
The username will be the username to phpmyadmin, and the password will be the password for that account.
The database name will be the database name that you chose.
The prefix can be left alone, as the default is just fine. :)
I've got xampp up and running, copied the files of sikkesautomobielen.nl via FTP to my htdocs, connected my php database and have got my duplicate site working (localhost). When I click on one of the links on the site I still end up on sikkesautomobielen.nl instead of my localhost. I guess it's a database issue. Is there an easy way for me to make the URLs reference to localhost instead of sikkesautomobielen? I'm trying to develop a Wordpress site and when I'm done, I would like to upload it to the server. This way the site has a minimal down time and I can afford myself some mistakes without the "official" site crashing.
It's a database issue. Go to your database( PHPMyAdmin) and under *_options you will find 2 base urls, change them to your localhost url and the site will work.
Change the 'option_value' of both 'home' & 'siteurl'
'*' refers to your selected prefix
I'm having trouble migrating a Wordpress site I've been working on from my local machine onto a host.
I've been through the documentation and as far as I understand, I have to:
Export the wordpress database from my local server.
Edit the wp-config.php file to suit my target server.
Change the URL's in the settings to suit my target server.
Import the database on my target server and move over the adjusted wordpress installation onto my target server.
I can do all of this, but my there seem to be some problems: in my hosts phpmyadmin I can't view or edit any users and neither can I create any databases (there's no option for it). When I try to import a database I get an error: #1046 - No database selected.
What do I not know/doing wrong?
If importing a database, you need to create one first with the same name, then select it and then IMPORT the existing database to it.
I can do all of this, but my there seem to be some problems: in my hosts phpmyadmin I can't view or edit any users and neither can I
create any databases (there's no option for it).
If you're going through CPanel, you won't be able to add a database directly through PHPMyadmin. You should go to your host's home page and look for some wizard to create a database. (it should be next to the PHPMyadmin link.
Alternatively, for moving wordpress, You can install wordpress on your live site, then export your localhost content via Wordpress's dashboard and then import it on the live site.
This article on Moving Wordpress will also be helpful.