Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Please - Mysql


Guest

Recommended Posts

Hi all

 

Have installed a contribution Login and Logoff for osCommerce Administrators.

 

Everything is installed correctly but, I get an error mesage:

 

1146 - Table 'myserver.administrators' doesn't exist

 

select * from administrators

 

[TEP STOP]

 

Obviously this file does not exist in mysql and I was hoping that someone with knowledge would help me create adminstrator file

 

Thanks in advance

 

Liam

Link to comment
Share on other sites

They gave you an SQL file in the contribution (assuming you downloaded the full package). You have to log onto your cpanel, then go into your database section, and find phpmyadmin.

 

Then you have to click the SQL button, and run that query -- copy the contents of the SQL file that came with the contribution into the SQL box, and run the query. This will create the table you need.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

They gave you an SQL file in the contribution (assuming you downloaded the full package). You have to log onto your cpanel, then go into your database section, and find phpmyadmin.

 

Then you have to click the SQL button, and run that query -- copy the contents of the SQL file that came with the contribution into the SQL box, and run the query. This will create the table you need.

 

 

Hi

 

Thanks for your reply, I have got this with it but as there are know readable instructions, I am not sure if I have to change any values and exactly what part do I run from mysql

 

1. ???????????Աadmin???ݣ??˹???Աӵ??????Ȩ??

 

 

DROP TABLE IF EXISTS administrators;

CREATE TABLE administrators (

administrator_id int(11) DEFAULT '0' NOT NULL auto_increment,

username varchar(20) NOT NULL,

password varchar(20) NOT NULL,

allowed_pages varchar(255) DEFAULT '*' NOT NULL,

PRIMARY KEY (administrator_id)

);

 

INSERT INTO administrators VALUES ( '1', 'admin', 'admin', '*');

Link to comment
Share on other sites

Hi

 

Thanks for your reply, I have got this with it but as there are know readable instructions, I am not sure if I have to change any values and exactly what part do I run from mysql

 

1. ???????????Աadmin???ݣ??˹???Աӵ??????Ȩ??

DROP TABLE IF EXISTS administrators;

CREATE TABLE administrators (

administrator_id int(11) DEFAULT '0' NOT NULL auto_increment,

username varchar(20) NOT NULL,

password varchar(20) NOT NULL,

allowed_pages varchar(255) DEFAULT '*' NOT NULL,

PRIMARY KEY (administrator_id)

);

 

INSERT INTO administrators VALUES ( '1', 'admin', 'admin', '*');

 

 

just to add when I run the above text I do get an error message from Mysql:

 

#1067 - Invalid default value for 'administrator_id'

 

 

Regards

Link to comment
Share on other sites

You should just be able to go into phpmyadmin and run:

 

DROP TABLE IF EXISTS administrators;

CREATE TABLE administrators (

administrator_id int(11) DEFAULT '0' NOT NULL auto_increment,

username varchar(20) NOT NULL,

password varchar(20) NOT NULL,

allowed_pages varchar(255) DEFAULT '*' NOT NULL,

PRIMARY KEY (administrator_id)

);

 

INSERT INTO administrators VALUES ( '1', 'admin', 'admin', '*');

 

 

As far as that error is concerned, I'm not a database expert. I'll have to research into that. In the meantime, hopefully someone more knowledgable about databases and queries will respond. But I will look into it; just give me a few.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...