http://dev.mysql.com/doc/refman/5.1/en/alter-table.html
ALTER TABLE tablename MODIFY columnname INTEGER;
This will change the datatype of given column
Depending on how many columns you wish to modify it might be best to generate a script, or use some kind of mysql client GUI
Related Posts:
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- How to use mysqli_query() in PHP?
- Access denied for user ‘root@localhost’ (using password:NO)
- Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (38)
- MySQL ERROR 1045 (28000): Access denied for user ‘bill’@’localhost’ (using password: YES)
- How do I quickly rename a MySQL database (change schema name)?
- What does SQL Select symbol || mean?
- PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused
- Mysql: Setup the format of DATETIME to ‘DD-MM-YYYY HH:MM:SS’ when creating a table
- MySQL DROP all tables, ignoring foreign keys
- Setting up foreign keys in phpMyAdmin?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
- mysql is not recognised as an internal or external command,operable program or batch
- MySQL error code: 1175 during UPDATE in MySQL Workbench
- Search for all occurrences of a string in a mysql database
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- ERROR 1452: Cannot add or update a child row: a foreign key constraint fails
- Data truncated for column?
- Access denied; you need (at least one of) the SUPER privilege(s) for this operation
- How to update a record using sequelize for node?
- Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root
- Can’t open the mysql.plugin table. Please run mysql_upgrade to create it
- Convert MySQL to SQlite [closed]
- Create a temporary table in a SELECT statement without a separate CREATE TABLE
- Convert partially non-numeric text into number in MySQL query
- MySql: is it possible to ‘SUM IF’ or to ‘COUNT IF’?
- MySQL: What’s the difference between float and double?
- How can I search (case-insensitive) in a column using LIKE wildcard?
- MySQL Select Multiple VALUES
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- How to unblock with mysqladmin flush hosts
- Node.js MySQL – Error: connect ECONNREFUSED
- Solution to “subquery returns more than 1 row” error
- MySQL Error #1071 – Specified key was too long; max key length is 767 bytes
- How To have Dynamic SQL in MySQL Stored Procedure
- MySQL – UPDATE query with LIMIT
- MySQL said: Documentation #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)
- What SQL Query to do a simple find and replace
- Scanning Database for malicious Data
- how to refresh wordpress permalink settings? (without admin panel)
- Ordering posts by day (not time) AND meta value
- wpdb->prepare function remove single quote for %s in SQL statment
- Problems with DBDelta with FOREIGN key?
- Is it useful to turn on MySQL query cache for performance
- Programmatically changing role information; editing role name and deleting
- Search and replace in post content
- How to add 2 hours to the wordpress time formed with current_time(“mysql”, false)?
- wpdb insert and boolean fields
- What are the issues associated with upgrading MySQL for WordPress?
- How to find meta entries with their posts missing via SQL?
- Mysql SELECT posts
- #1115 – Unknown character set: ‘utf8mb4’
- How to add a private user page populated from sql?
- Slow wp-admin due to “SELECT DISTINCT post_mime_type FROM wp_posts WHERE post_type = ‘attachment'”
- Code to remove authors with no posts connected to them
- Which is better and faster ? WordPress Queries or SQL Query
- SQL Query in WordPress – Getting Impossible WHERE error
- WordPress create database not working
- Using WPDB->Insert()
- Active DB queries in WordPress?
- Changing MySQL password via WHM – does this affect WordPress?
- database optimization and server errors
- Run Username SQL Query from WordPress Child Theme Functions File
- SQL syntax error. However, it works normally at phpmyadmin
- string literals in query
- MySQL query for taxonomy-meta
- Editing mysql tables/database with wordpress or other app/cms
- Create pages from MySQL database
- Sql – Search with serialized Data / better database concept
- WordPress unescape text on mysql?
- Getting data from Mysql Table..confusing
- Exporting completed webiste for another server
- SQL Statement – Mass Delete Custom Post Types
- Ubuntu 12.04, Nginx and MySQL issue with WordPress Database
- querying user bookmarks from a large number of bookmarks
- latency problems with wordpress install (from SQL import)
- mysql – Delete keyword with link from wordpress post database
- Creating dynamic content and pages for 1000’s of locations
- Remove duplicate media entries from mysql database
- mysqli_sql_exception: Unknown column ‘wp_’ in ‘field list’ PHP 8
- In a MySQL query, one of the columns in the LEFT JOIN returns “Unknown column”
- DB option update with wp-cli
- How to simulate web traffic to test performance of a website
- Find locations of all featured images of draft posts via SQL
- wpdb insert into point column in db
- SQL. Select category descendants
- 403 Forbidden home on localhost with nginx server
- WPDB delivers wrong results from complex queries
- Why is local wordpress install calling live site executions?
- How to change link in all posts?
- Migration of wordpress database from mariadb 10.0.20 to 5.5.50
- #1115 – Unknown character set: ‘utf8mb4’
- Get data from 3rd table
- Internal error (500) on local & Fatal error on live when trying to access post type edit screen
- Why can’t I connect to imported WP DB on local MAMP?
- Where other than wp-config can database access details be defined?
- Is there an equivalent of MySQL’s SHOW CREATE TABLE in Postgres?
- How can I show user’s privileges in MySQL?
- Changing host permissions for MySQL users