Extract the zip file ( ex. to C:\\Webroot\\plaincart )
Create a new MySQL database ( ex. 'plaincart' );
Create the tables using the SQL in plaincart.sql. On windows just open a command prompt window ( Start > Run > cmd.exe ) and go to the directory where you unzip the files then type this :
C:\\mysql\\bin\\mysql plaincart < plaincart.sql
I'm assuming you install mysql in C:\\MySQL
Modify the database connection settings in library/config.php.
And I also don’t know how to view the active shopping cart (the demo site), like http://www.phpwebcommerce.com/plaincart/index.php Should I write another php file and somehow link all those source code given. Please help!
I have never used mysql on Windows (I do not know where is it installed by default), but you have to know that MySQL and mysql refers to two different staff. mysql (all lowercase - http://dev.mysql.com/doc/refman/5.5/en/mysql.html) is a MySQL command line tool and MySQL is a database system.
The following steps can be done by phpMyAdmin
Create a new MySQL database ( ex. ‘plaincart’ );
Create the tables using the SQL in plaincart.sql. On windows just open a command prompt window ( Start > Run > cmd.exe ) and go to the directory where you unzip the files then type this:
by typing it into the SQL section of phpMyAdmin, but when I press go, I get an error
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘C:\Users\User\Desktop\XAMP\xampp\mysql\bin>plaincart.sql’ at line 1
. I don’t know what I am doing wrong.
This is the folder structure to get to the plaincart.sql file:
Desktop>Xamp>xampp>mysql>bin>plaincart.sql
Forget my earlier comment, I missed that you’re using xampp.
From what I see in your posts you need to 1) create a mysql database then 2) import the sql file (which means have the database system execute the sql statements contained in the sql file). In phpmyadmin you use the Import tab to do this, from a command line you run the mysql command line program as described in an earlier post.
MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE=MyISAM AUTO_INCREMENT=58’ at line 10
I feel like quiting. And I bet you’re frustrated as well.