I'm new to magento.
I need to first install sample data. I created an empty database with phpmyadmin and then I imported magento_sample_data_for_1.9.1.sql file, but this throw me so many errors.
I'm following tutorials on youtube, I can't see this same error in any site, please if anyone know. Thank you so much.
error pic
EDIT FOR MORE INFO:
I'm trying to import magento sample data to a empty database (I read than I need to install it first, and then install magento), following tutorials, all steps are like this:
1) Download sample data done!
2) Create a new empty database. I'm doing it with phpmyadmin.
3) Import the sample data .sql and this should create all the tables from that file, but give me instead 124 errors.
I'm trying to install it on local, using WAMP.
I really need this because is for a job, I dont know because all the videos, all the tutorials are that exact steps to import the sample data to en empty database.
this is a tutorial reference: https://www.fastcomet.com/tutorials/magento/install-magento-sampledata
Anyone have similar issues? Any doubt of what I'm doing please let me know, and I tell you.
SOLUTION: Ok, the community is not that kindly. I've come with the solution.
phpmyadmin have some troubles reading .sql magento sample data so I used the SQL command line to import the .sql I needed, and it work that way.
Thank you, anyway! and if anyone pass though this problem, this is the solution.
First download fresh magento sample data from Download magento sample data
You can create new empty database in phpmyadmin and also follow below steps
Open your Xampp/Wamp php.ini file and edit below thing:
max_execution_time=18000
max_input_time=18000
post_max_size=1024M
upload_max_filesize=1024M
After all thing then save php.ini file and restart your Xampp/Wamp.
Now you can try to import sample data in phpmyadmin.
It's working fine....
Related
Here is what I am dealing with, and I apologize for not being very sure of what I am doing.
I am trying to import a sql database dump file into xampp so that I can run a friends application.
I cloned the repository and put the code base into my htdocs folder. However, it needs to communicate with the database to run.
I have the dump file however when I go to import it I get the following:
Error
SQL query:
DROP TABLE IF EXISTS `sl_address`
MySQL said: Documentation
#1046 - No database selected
Do I need to create a database to dump into before I import the sql dump file? If so, does it matter what I name it, if it does how do I know what to name it?
I imagine if I don't name it correctly that the application won't be able to communicate with it.
I am really new to all this so I appreciate any help I can get. Thank you!
I think you need to create a database and select it before you run the SQL script that was generated by the dump.
Something like this:
create database newdb;
use newdb;
then the rest of your script.
Bobby
Accidentally I exported all my mySQL databases to a single .sql file. I want to create those databases again in my development environment. When I try to import the file via PHPMyAdmin I get the following error message:
What should I do? Could you please help me?
If you look at the error, it says no Database selected.
You need to create an identical Database and import it from their.
You cannot just import a whole database, as it does not work.
Let me know if this solves,
Bryce
*also, make sure the files are speared by database, as this could make the error also, as the import can only import one in one file
I am new to hosting website and stuffs, I hosted a forum just for fun on 000webhost.com using an open source forum called Simple Machines Forum (SMF), by the time I setup the forum, I didn't know anything about database and all so I just typed random words like my username, my forum name etc. on "Database name", "Database server" fields. I think I typed my forum's link in "database server" field, so nothing was created on Mysql server and instead a database was created in the root of my website with a file format .db, so I want to import this .db to a proper Mysql server. When I opened this database with notepad++, all my posts, people usernames and file attachments were there. Can I import it?
Please let your answers be noob friendly. :D Thank you.
Sorry, but there is no really noob friendly way to answer this, because it's a complex task.
This database you have is likely in SQLite format. You can try creating a dump of it like this:
sqlite3 your_database.db .dump >dump.sql
And then feed this dump to MySQL using phpMyAdmin or MySQL workbench, or command line. But doing this directly most like won't work because of incompatibilities between SQLite and MySQL. Check out this question for possible solutions for this.
I have copied a database from another computer and pasted it in C>XAMPP>MySql>Data of my computer so that I can work with the tables of the database. But I cannot see the tables inside the database. Message shows 'No tables found in database'
I am using phpmyadmin 127.0.0.1 downloaded free from web. I am just a beginner in this field. Please excuse my ignorance and help me in this regard.
If you have your_db.sql file import the database and tables into MySql server using phpmyadmin. You can check here
The approach guaranteed is to Export from the source computer and Import to the destination computer; that is guaranteed and will work perfectly. Try that!
Do this from your phpmyadmin
I'm working on a group project and my partner sent me a .mwb file so I could take a look at what they did for the ER diagram, but she can't figure out how to send a .sql file for the database itself (at least I think those are .sql files). How do you save and send a database to someone? I am trying to test the database by writing some queries, but I don't know how to do that if all I can look at is the Diagram. Thanks for any help.
MySQL work bench can definitely do this for you.
here is one link where you have some screenshots too : Back up and restore MySQL databases using MySQL Workbench
It shows how to do both export and import of a database backup.