Support

Site Restoration

#22654 Moving to new server "Force UTF-8" problem

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by dlb on Wednesday, 20 May 2015 19:44 CDT

allfive
 Restoring from old host to new with kickstart. I'm at the database creation stage and I get this error when trying to proceed:

SQL=CREATE DATABASE `firemena_db2` CHARACTER SET `utf8`

I try "Force UTF-8" for both tables and database but get the same error. Interestingly, the database server charset is UTF-8 Unicode (utf8).

??

dlb
You need to manually create the database before doing the restore. Akeeba can only create the tables within the database and restore data to them. It almost never has the rights necessary to create a database.

Once you create your database, user and password you can just visit your site on localhost and you will be redirected to the installer. You don't need to extract the archive again.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

allfive
Thanks. I should have made clear the database was already created. The problem occurred at the step where the new database was to be populated by the restore, the step where I enter localhost, the db name, user name, password, etc.

This is on a live server.

Once you create your database, user and password you can just visit your site on localhost and you will be redirected to the installer.


Not sure how I would do this on a live server other than to delete the unpacked files and start over.

Thx.

nicholas
Akeeba Staff
Manager
Dear Don,

Creating a database on your server, restoring the database content and extracting the backup archive are three entirely unrelated things. Please let me explain.

You only need to extract the backup archive once. After it's extracted you can relaunch the restoration script (ANGIE) anytime by visiting the installation/index.php URL of your site on your browser. For example, if your site (where you are restoring to) is http://www.example.com you can visit http://www.example.com/installation/index.php to get to the restoration script. Just keep in mind that you will need to remove the backup archive, the installation directory and kickstart.php yourself after the restoration is over.

Regarding the creation of a database, this is NOT done through ANGIE. This is something that you usually have to do through your hosting control panel. Please consult with your host. What you need to move forward is the database server hostname (typically "localhost" on SiteGround), the database username and password and the database name. We can't tell you what these are since we're not your host.

Having this information you can now proceed to the restoration. When you reach the database restoration page you must enter the database hostname, username, password and name in the field provided BEFORE asking ANGIE to restore your database. If you've got the information right the restoration will go on without a problem.

Since you're using SiteGround and we're also hosted on SiteGround I can give you some more specific information. Please go to https://www.akeebabackup.com/documentation/troubleshooter/abidatabase.html and read the information under "Creating a database on a cPanel host" to learn how you can create a new database on SiteGround (they're using cPanel as their hosting control panel). Do keep in mind that questions regarding the creation of databases and database users should be addressed to your host. Maybe they've already created one for you and don't allow you to create a new one. Unfortunately these are the critical bits we just can't know because we're not your host.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

allfive
Thanks very much, Nicholas, for your detailed reply. The information was very helpful. This is my first time moving to a new server.

However, the error I receive after creating the database, entering the correct UN/PW, db location, etc. is still:
SQL=CREATE DATABASE `firemena_db2` CHARACTER SET `utf8`

IOW, when I went thru the kickstart process, the new database existed and I entered all the required information at the proper place in the restoration process and received the above error whether I used force utf-8 or not.

The SiteGround support staff went thru the process using the archive, kickstart, and a new database and couldn't resolve the problem.

nicholas
Akeeba Staff
Manager
You have entered the wrong database connection information.

When the database does not exist –but the hostname, username and password are correct– ANGIE assumes that you need to create the database. This is when it issues the command you pasted. Since your database user has no privileges to create a new database you get a failure message.

Almost every single time I've seen that message it means that you did create a database, you did create a user, but you didn't give the user access to the database or you didn't give the user all the necessary privileges. I'm pretty sure SiteGround didn't check for that.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

dlb
I apologize for the "localhost" instruction, you caught me in a copy and paste. I actually got the same question two tickets in a row.

The database name would be case sensitive.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!