• Hi everyone,

    I would like to move my wordpress from xampp to a server that I’ve already installed Apache, php and Mysql individually.

    Everthing (including, apache, php, mysql and myphpadmin) is working fine.

    Then, I installed wordpress, edited wp-config, created admin account, and login as admin.

    I’m going to import the old databases to the new one.

    Now, can I just replace the new wordpress folder with my old one?

    Is there anyone who can provide steps or link for that?

    Any help? I appreciate it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • I had a similar issue and just copied my files across, I think you might need to double check files such as .htaccess, but from memeory the php files worked fine. You have tested the new server so the files *should* be OK.

    You will need to check and reset permalinks etc. once setup.

    Thread Starter fochance

    (@fochance)

    I still have some questions.

    1. There is no password for phpmyadmin in Xampp, but now I have to create a (root)password for phpmyadmin. Will that be ok?

    2. I have a sql file that exceeds 2Mb. I’ve already split it into
    two files. Then, I imported them in phpmyadmin and failed. Is there anything I missed? I was wondering how phpmyadmin merge the two files if I import them successfully.

    I appreciate your help.

    Moderator t-p

    (@t-p)

    It is so long ago I can’t remember what I did for phpmyadmin, though a quick check reveals that I have a password – heaven knows what it is as I have a ‘user’ setup in it and use that. I would always caution that ‘root’ on anything never has a blank password unless it is on a controlled PC such as a development server, but that is entirely up to you.

    Importing the sql…

    I assume you have a export of the database in the .sql file and want to import this? I use a program called NP++ which is a notepad type of editor, but has colour coding for ease of reading. If I have a large file I chop the SQL using NP++ so I can see the restore code, start with the largest tables and cut the big SQL down into smaller chunks using cut and paste. Sometimes I paste directly into the SQL tab of phpmyadmin sometimes run the import. However keep a backup of the original .sql file safe somewhere! I usually name the SQL files I create something like wp_posts.sql and just have the wp_posts table data for insert, same with wp_comments etc. Once the big SQL file has been chopped in this way you can run a SQL restore on the remaining smaller SQL tables such as users, options etc.

    Thread Starter fochance

    (@fochance)

    Thanks t-p.

    datasoftict,

    I mean if I create a password for the new one(phpmyadmin). Would it affect the blog(database) running? Is there any program running depends on the password? or just control to access phpmyadmin?

    Thanks.

    t-p might know better as I haven’t done phpmyadmin for some years, but nothing external that I know of affects your WP blog, which is why it can run across different platforms/setups. If phpmyadmin wants a password then it will be for phpmyadmin management.

    If you are installing phpmyadmin and running this on a local server have you thought about the mysql admin tools instead? They work directly into the DB https://dev.mysql.com/downloads/gui-tools/5.0.html I never use anything else for my DB management.

    Moderator t-p

    (@t-p)

    I don’t know about your server, but on my server, for example, I need password to login the server to access the server, and I also need password to login phpmyadmin to access phpmyadmin.

    Thread Starter fochance

    (@fochance)

    In my server with Xampp, I just double click the Xampp and click “admin” on MySql. Then, I can go to phpmyadmin without a password.

    From phpmyadmin index page:

    Many people have difficulty understanding the concept of user management with regards to phpMyAdmin. When a user logs in to phpMyAdmin, that username and password are passed directly to MySQL. phpMyAdmin does no account management on its own (other than allowing one to manipulate the MySQL user account information); all users must be valid MySQL users.

    My version has a user and password in the config.inc.php file and takes me in as that user, that user and password are my MySql user and password, so root in this case *could* be indicating the root password for your mysql (learn something new everyday!)

    Use youe Mysql details, and if you can set these in your phpmyadmin config file you won’t need to add them when using it to connect.

    Thread Starter fochance

    (@fochance)

    datasoftict, one more question. After you get rid of Xampp, did you make any connection between the database and wordprss. Cos I have a problem. When I use Windows command prompt and typed,
    C:\Program files\Mysql\Mysql Server 5.5\Mysql

    It says Error 1045 <28000>: Access Denied for user ‘ODBC’@ Localhost'<using password:……

    What do you think?

    I appreciate your help.

    I have just tried this on my windows setup.

    First I think you should be using mysqld-nt.exe as this is the windows driver. I tried to connect to my version using C:\Program files\Mysql\Mysql Server 5.0\bin\mysqld-nt and had no problems, the instance of mysql started. What are you using in services? if you go into administration tools > services scroll down to Mysql, right click and view properties, this should show the ‘path to executable’ command line.

    From my installation of Mysql I have a drop down from my mysql server 5.0 menu called mysql server instance config wizard and this sets up my my.ini file. This sets root, then I used my mysql administrtaor option from the tools menu to set up a user, then logged in as that user whem making connections.

    In phpmyadmin use the privileges tag and set up a user from there. ODBC is the windows connection and I don’t think you want to use ODBC connections, just straight mysql user connections. The user name in you privileges table ashould be the same as the one in your wp-config, along with the password. use the pencil icon to make amendments.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Moving from Xampp to ….’ is closed to new replies.