Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Oct 18, 2017 5:03 pm


Mysql Application & Query Optimization, Questions, Indexes, Bugs.

Author Message
admin
Post  Post subject: MySql drop unique key/index/constraint  |  Posted: Wed Feb 02, 2011 6:19 pm
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 101

Offline
 

MySql drop unique key/index/constraint

To find out what unique indexes are in a table issue:
Code:
mysql> SHOW CREATE TABLE table_name
...
  UNIQUE KEY `unique_user` (`user`),
...


In the above case, there is a unique index / key named 'unique_user' on 'user' column.

To drop the unique key run:
Code:
mysql> ALTER TABLE table_name DROP INDEX unique_user;
Query OK, 6 rows affected (0.05 sec)
Records: 6  Duplicates: 0  Warnings: 0


_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com





Top
dugEdiguift
Post  Post subject: fun movie  |  Posted: Wed Mar 23, 2011 8:39 pm

Joined: Wed Mar 23, 2011 1:28 am
Posts: 1

Offline
well, what I was searching for


Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "MySql drop unique key/index/constraint"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Mysql drop (remove) unique key

mandrei99

0

943

Wed Jan 14, 2015 7:53 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Mysql add Unique index to a table column

debuser

0

1405

Fri Aug 06, 2010 10:01 am

debuser View the latest post

There are no new unread posts for this topic. MySql doesn't start: libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)

debuser

0

1204

Mon Feb 22, 2010 1:43 pm

debuser View the latest post

There are no new unread posts for this topic. Mysql: add column to table

debuser

1

1794

Fri Oct 08, 2010 1:38 am

sonee4 View the latest post

There are no new unread posts for this topic. Rename MySql table

debuser

1

590

Fri Oct 08, 2010 1:36 am

sonee4 View the latest post

There are no new unread posts for this topic. MySql rename table

admin

2

930

Mon Nov 28, 2011 3:39 am

Darwin View the latest post

There are no new unread posts for this topic. How to use a mysql stored procedure

debuser

1

595

Tue Nov 22, 2011 1:23 am

Darwin View the latest post

There are no new unread posts for this topic. Mysql: Cleaning binary logs

debuser

1

962

Tue May 18, 2010 9:45 am

designeru View the latest post

There are no new unread posts for this topic. Mysql change column's default value

debuser

0

1131

Thu Aug 12, 2010 3:43 am

debuser View the latest post

There are no new unread posts for this topic. Mysql change root password

mandrei99

0

1040

Tue Feb 10, 2015 6:50 pm

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO