×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
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/.env
sudo 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 .env
Git
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 nginx
queries
file) from Linux command linemysql -u test_user -p test_db < /var/www/queries.sql
The 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';
mysql-server
to set password for the root
usersudo mysql_secure_installation
After the command is executed, we enter the password for the MySQL root usersudo ufw allow 'Nginx HTTP'