Recently I setup a website on byethost.com using the CMS ezpublish. After a couple days of working on the site, byethost deleted the Mysql database. I still have all the FTP files but I can't log in as an admin because their is not Mysql database with all the users. Is there any way I can create a new Mysql database setup for Ezpublish. All I need currently is an admin account and whatever other information is essential to have for Ezpublish to run. Any response/ideas would be great.
Just create a new database
Then, for a plain site (not ezflow neither ezwebin) import those files : kernel/sql/mysql/kernel_schema.sql and kernel/sql/common/cleandata.sql in MySQL.
The admin username will be : admin and the admin password will be : publish
By the way, an other solution is to edit settings/override/site.ini.append.php and change this:
[SiteAccessSettings]
CheckValidity=false
to this:
[SiteAccessSettings]
CheckValidity=true
Reloading a page will lead to launch the setup wizard just like if it was a fresh install. (If it doesn't work, you may need to clear the cache by yourself and try again)
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 deleted database and db user of my WP website. My website stopped working.
I opened wpadmin.php and created database and user according to info in it.
Now when I try to open my website it redirects to
http://iiuischoolsryk.com/wp-admin/install.php
What should I do now? Should I proceed to Installation?
PS:
Although hosting provider is my best friend, he is not available to help
I have access to Cpanel, phpMYADMIN.
I have complete installation files of that particular wp theme.
All your previous data, unless backed up, is totally gone. You'll have your theme and plugins still in their directories, but no pages, posts, etc.
To get back to having a blank wordpress installation, do the following.
Create a new MySQL database, via phpMyAdmin if you like.
Create a new MySQL user, with password, and assign them permissions
to the database created in step 1.
Now run the 5 minute WordPress install with the database name, user
name, and passwordyou've just created.
I am using xampp to host my website local. I am making a WordPress site with the MySQL database from xampp.
Now, I bought a new computer and took backup of my WordPress folder. Now when I try to open my WordPress site on my new computer, I get the error: Error establishing a database connection
I can image this is because the database that is linked to the WordPress site is not on my new system.
I formatted my old drive so I cannot restore the old database. Is there a work around?
If you have your old database file (.sql) then you can just
Run this link from your browser http://localhost/phpmyadmin.
Select Database which you want to upload the SQL file. (If no DB , create new database).
Click on Import option from top menu section and upload you files.
and for taking backup of your database on Xampp
1. Run this link from your browser http://localhost/phpmyadmin.
2. Select Database which you want to take backup of.
3. Click on Export option from top menu section and backup your files.
If your old drive is completely formatted, and you weren't using any sort of Wordpress backup plugin, then no, you won't be able to rebuild the site. Sorry! As well as storing your content (posts / articles), your Wordpress database also stores information on which plugins you were using, so it is an critical part of rebuilding any Wordpress site.
Next time around, you should export your database to a file (eg .sql), so you can import it on your new server/laptop. You would achieve this by either using a Wordpress plugin, or on XAMPP by using phpMyAdmin. You could also do this with 3rd party apps, like SequelPro or MySQLWorkbench.
You should have your images and static assets saved - eg css files, uploaded images, so you have something to start with, if you decide to rebuild your site without the database.
You need to install your wordpress site again with new database. You already lost it. Always backup your wordpress site.
You can backup your wordpress site with this plugin and it's free-
https://wordpress.org/plugins/updraftplus/
Thanks
BanyanTheme
Step 1: Backup your database on the old computer.
Step 2: Restore the database onto the new computer.
Step 3: Run file install in wordpress
Good luck!
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 a server that already runs a WordPress site and I wanted to know if there is a way to add another entirely different WordPress site operating on its own Database on the same server. How can this be done on a Windows server?
There are two ways to do this. The first is to just create a separate MySQL database for the new site. You can do this from either PHPMyAdmin or from the MySQL console fairly easily.
CREATE DATABASE `my_new_wordpress_db`;
Then when you do the second wordpress installation use the new database instead of the first database when it asks you for a database name.
Alternatively you can put both installations in the same database but use different table prefixes instead. During the install wordpress provides a "table prefix" option which you can change to something else to allow both sites to be stored in the same database at the same time. You can also find this option on on line 62 of the wp-config.php file.
$table_prefix = 'wp_';