Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,296 members, 7,808,004 topics. Date: Thursday, 25 April 2024 at 02:25 AM

Mysql Error: 1075 - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Mysql Error: 1075 (1078 Views)

A Php Mysql Server That Works Well On Android Version 8.0 / Free Online Training For Html/css, Javascript, Jquery, Mysql, Php, Java, Android / Learn PHP & MYSQL The Fast Way. (2) (3) (4)

(1) (Reply) (Go Down)

Mysql Error: 1075 by Jvaug883(m): 4:06pm On May 14, 2018
I've google a bit about this can't seem to find a straight answer. Has anyone got the MySQL Error: 1075?
What does this errorcode mean?
Re: Mysql Error: 1075 by roadsta(m): 11:31pm On May 14, 2018
Can you post the code or the table definition here ?
Re: Mysql Error: 1075 by romme2u: 2:11am On May 15, 2018
post the full error message the DB server vomited

OR if you know how to read mysql doc, you can check it up




A little googling, here is the accepted answer on stackoverflow n corresponding code


You can have an auto-Incrementing column that is not the PRIMARY KEY, as long as there is an index (key) on it:

CREATE TABLE members (
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
memberid VARCHAR( 30 ) NOT NULL ,
`time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
firstname VARCHAR( 50 ) NULL ,
lastname VARCHAR( 50 ) NULL ,
PRIMARY KEY (memberid) ,
KEY (id) --- or: UNIQUE KEY (id)
) ENGINE = MYISAM;





Follow the link below for better explanation
https://stackoverflow.com/questions/8114535/mysql-1075-incorrect-table-definition-autoincrement-vs-another-key/8114994?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Re: Mysql Error: 1075 by jerrysss(m): 2:45pm On May 21, 2018
What is the complete error message, including script info? And where are you getting this? I did google search and found some solutions on how to fix MySQL error codes here: https://www.repairtoolbox.com/mysqlrepair.html
Re: Mysql Error: 1075 by Paulsamuel28: 7:59am On Sep 14, 2018
Hi,

Trt to fix it, by using MySQL database repair tool. This one is designed to fix MySQL database files, data and objects.

(1) (Reply)

Saas Startup: What Has Been Your Experience Selling To Institutions In Nigeria?` / Let's Team Up For A Start-up / I Want To Know More About Google Admod

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.