The syntax you used is from a SQL Server example, not from MySQL. It would be good to check the MySQL documentation about ALTER TABLE syntax.

In MySQL, the ALTER COLUMN subclause can only be used for setting or dropping the default value of the column (SET DEFAULT literal or DROP DEFAULT).

You need to use either CHANGE COLUMN (note that column name is doubled as you could use this to change its name):

ALTER TABLE MyTable  
    CHANGE COLUMN comment comment BIGINT NOT NULL;

or MODIFY COLUMN:

ALTER TABLE MyTable 
    MODIFY COLUMN comment BIGINT NOT NULL;

Now, there are 2 more problems, beside the syntax:

  • Seeing the CREATE TABLE, converting a "comment" column from TEXT to BIGINT does not make much sense. I'll assume that you want to keep it TEXT and only make it NOT NULL.

  • There might be NULL values already in the table. If that's the case, the statement will fail with errors. So, you have to first UPDATE those values to some non-null value (say the empty string) and then modify the column:

So our statements become:

UPDATE glpi_ticketsatisfactions 
SET comment = ''
WHERE Comment IS NULL ;

ALTER TABLE glpi_ticketsatisfactions 
    MODIFY COLUMN comment TEXT COLLATE utf8_unicode_ci NOT NULL ;
Answer from ypercubeᵀᴹ on Stack Exchange
🌐
W3Schools
w3schools.com › mysql › mysql_null_values.asp
MySQL NULL Values - IS NULL and IS NOT NULL
MySQL Examples MySQL Editor MySQL Quiz MySQL Exercises MySQL Syllabus MySQL Study Plan ... If a field in a table is optional, it is possible to insert or update a record without adding any value to this field. This way, the field will be saved with a NULL value. A NULL value represents an unknown, missing, or inapplicable data in a database field. It is not a value itself, but a placeholder to indicate the absence of data.
🌐
MySQL
dev.mysql.com › doc › refman › 9.7 › en › working-with-null.html
MySQL :: MySQL 9.7 Reference Manual :: 5.3.4.6 Working with NULL Values
mysql> SELECT 0 IS NULL, 0 IS NOT NULL, '' IS NULL, '' IS NOT NULL; +-----------+---------------+------------+----------------+ | 0 IS NULL | 0 IS NOT NULL | '' IS NULL | '' IS NOT NULL | +-----------+---------------+------------+----------------+ | 0 | 1 | 0 | 1 | +-----------+---------------+------------+----------------+ Thus it is entirely possible to insert a zero or empty string into a NOT NULL column, as these are in fact NOT NULL.
🌐
Database Guide
database.guide › 4-ways-to-replace-null-with-a-different-value-in-mysql
4 Ways to Replace NULL with a Different Value in MySQL
May 31, 2018 - SELECT IF(TaskCode IS NULL, 'N/A', TaskCode) AS Result FROM Tasks; Another way to do it is to use the CASE expression: SELECT CASE WHEN TaskCode IS NOT NULL THEN TaskCode ELSE 'N/A' END AS Result FROM Tasks;
🌐
MySQL
dev.mysql.com › doc › refman › 8.4 › en › working-with-null.html
MySQL :: MySQL 8.4 Reference Manual :: 5.3.4.6 Working with NULL Values
mysql> SELECT 0 IS NULL, 0 IS NOT NULL, '' IS NULL, '' IS NOT NULL; +-----------+---------------+------------+----------------+ | 0 IS NULL | 0 IS NOT NULL | '' IS NULL | '' IS NOT NULL | +-----------+---------------+------------+----------------+ | 0 | 1 | 0 | 1 | +-----------+---------------+------------+----------------+ Thus it is entirely possible to insert a zero or empty string into a NOT NULL column, as these are in fact NOT NULL.
🌐
W3Schools
w3schools.com › mysql › mysql_notnull.asp
MySQL NOT NULL Constraint
MySQL SQL MySQL SELECT MySQL SELECT DISTINCT MySQL WHERE MySQL ORDER BY MySQL AND MySQL OR MySQL NOT MySQL INSERT INTO MySQL NULL Values MySQL UPDATE MySQL DELETE MySQL LIMIT MySQL ...
🌐
MySQL
dev.mysql.com › doc › mysql-tutorial-excerpt › 8.0 › en › working-with-null.html
MySQL :: MySQL Tutorial :: 4.4.6 Working with NULL Values
mysql> SELECT 0 IS NULL, 0 IS NOT NULL, '' IS NULL, '' IS NOT NULL; +-----------+---------------+------------+----------------+ | 0 IS NULL | 0 IS NOT NULL | '' IS NULL | '' IS NOT NULL | +-----------+---------------+------------+----------------+ | 0 | 1 | 0 | 1 | +-----------+---------------+------------+----------------+ Thus it is entirely possible to insert a zero or empty string into a NOT NULL column, as these are in fact NOT NULL.
Find elsewhere
🌐
MySQL
dev.mysql.com › doc › refman › 9.6 › en › working-with-null.html
MySQL :: MySQL 9.6 Reference Manual :: 5.3.4.6 Working with NULL Values
mysql> SELECT 0 IS NULL, 0 IS NOT NULL, '' IS NULL, '' IS NOT NULL; +-----------+---------------+------------+----------------+ | 0 IS NULL | 0 IS NOT NULL | '' IS NULL | '' IS NOT NULL | +-----------+---------------+------------+----------------+ | 0 | 1 | 0 | 1 | +-----------+---------------+------------+----------------+ Thus it is entirely possible to insert a zero or empty string into a NOT NULL column, as these are in fact NOT NULL.
🌐
Ubiq BI
ubiq.co › home › how to alter column from null to not null
How To Alter Column From NULL to NOT NULL - Ubiq BI
August 7, 2025 - So first we will remove null values from this column using UPDATE statement. mysql> update sales set amount=0 where amount is null; mysql> select * from sales; +------+--------+------------+ | id | amount | order_date | +------+--------+---...
🌐
PopSQL
popsql.com › learn-sql › mysql › how-to-remove-a-not-null-constraint-in-mysql
How to Remove a Not Null Constraint in MySQL - PopSQL
MODIFY command and restate the column definition, removing the NOT NULL attribute. --Example: Products have a default stock of 0 ALTER TABLE products MODIFY stocks INT; Note that you MUST restate the full column definition, otherwise undeclared ...
🌐
MySQL
dev.mysql.com › doc › refman › 8.0 › en › working-with-null.html
MySQL :: MySQL 8.0 Reference Manual :: 5.3.4.6 Working with NULL Values
August 31, 2021 - mysql> SELECT 0 IS NULL, 0 IS NOT NULL, '' IS NULL, '' IS NOT NULL; +-----------+---------------+------------+----------------+ | 0 IS NULL | 0 IS NOT NULL | '' IS NULL | '' IS NOT NULL | +-----------+---------------+------------+----------------+ | 0 | 1 | 0 | 1 | +-----------+---------------+------------+----------------+ Thus it is entirely possible to insert a zero or empty string into a NOT NULL column, as these are in fact NOT NULL.
🌐
DB Vis
dbvis.com › thetable › mysql-nullable-columns-everything-you-need-to-know
MySQL Nullable Columns: Everything You Need to Know
December 3, 2024 - Yes, a MySQL nullable column can be changed to non-nullable through the ALTER TABLE MODIFY statement. However, before making this change, you must ensure that there are no existing NULL values in the column.
🌐
MySQL
dev.mysql.com › doc › refman › 8.0 › en › problems-with-null.html
MySQL :: MySQL 8.0 Reference Manual :: B.3.4.3 Problems with NULL Values
December 1, 2021 - To help with NULL handling, you can use the IS NULL and IS NOT NULL operators and the IFNULL() function. In SQL, the NULL value is never true in comparison to any other value, even NULL. An expression that contains NULL always produces a NULL value unless otherwise indicated in the documentation ...
🌐
PopSQL
popsql.com › learn-sql › mysql › how-to-add-a-not-null-constraint-in-mysql
How to Add a Not Null Constraint in MySQL
--Example: Products have a default stock of 0 ALTER TABLE products MODIFY stocks INT NOT NULL; Note that you MUST restate the full column definition, otherwise undeclared attributes will go back to default settings.
🌐
Baeldung
baeldung.com › home › sql constraints › altering a column from null to not null in sql
Altering a Column From NULL to NOT NULL in SQL Baeldung on SQL
May 3, 2025 - We can use the IS NULL operator in the WHERE clause to find all the NULL values in the gpa column and update them with 0.0: ... Now we can easily change the gpa column to NOT NULL.