×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
after insert and logs into log tableDROP TRIGGER IF EXISTS after_student_insert;
DELIMITER $$
CREATE TRIGGER after_student_insert BEFORE INSERT
ON students
FOR EACH ROW
BEGIN
INSERT INTO log (description)
VALUES ('One student inserted');
END$$
DELIMITER ;PI radians 1.5707963267948966 converted to degrees gives us 90 degrees.
PI: 3.141592653589793 radians converted to degrees gives us 180 degrees.SELECT
DEGREES(1.5707963267948966),
DEGREES(3.141592653589793)tinyInteger method generates tinyint(4) data type in MySQL$table->tinyInteger('column_name');
Whereas boolean method generates tinyint(1) data type$table->$table->boolean('column_name');.env file with edit mode using command line interfacesudo nano .env
We can specify the file with full addresssudo nano /var/www/csmp.ge/.envsudo unlink /etc/nginx/sites-enabled/csmp.use.ge.env.example file, names it .env and places it in the same directory sudo cp .env.example .envGit on the server, we can clone remote repositorysudo git clone https://tandilashvili@bitbucket.org/tandilashvili/csmp.git
The command clones the remote repository of csmp projectnginx server to apply changessudo systemctl reload nginxqueries file) from Linux command linemysql -u test_user -p test_db < /var/www/queries.sqlThe queries inside the file will be run into test_db using test_user user.
Note: The above command can be used to restore database, or add some tables, or insert some rows.root user to some password ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'some password';