Skip to content

pcfutures/utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 

Repository files navigation

Utilities

A collection of utilities & helpers.

Styling

Documentation

Useful Commands

  • MySQL

    • Dump a password-protected database to a raw .sql file - mysqldump -u [username] -p [databasename] > [filename].sql
    • Hydrate a password-protected database with a raw .sql file - mysql -u [username] -p -h localhost [databasename] < [filename].sql
  • Linux Shell

    • Copy a local file to a remote destination - scp [path_to_local_file] [user]@[hostname]:[path_to_remote_destination]
    • Copy a remote file to a local destination - scp [user]@[hostname]:[path_to_remote_file] [path_to_local_destination]

Solutions

  • MySQL 8 Access denied for user 'root'@'localhost'
    • sudo systemctl stop mysql
    • sudo mkdir -p /var/run/mysqld
    • sudo chown mysql:mysql /var/run/mysqld
    • sudo mysqld_safe --skip-grant-tables --skip-networking &
    • sudo mysql
    • UPDATE mysql.user SET plugin='mysql_native_password' WHERE User='root';
    • FLUSH PRIVILEGES;
    • EXIT;
    • /etc/init.d/mysql stop
    • service mysql stop
    • sudo killall -KILL mysql mysqld_safe mysqld
    • /etc/init.d/mysql start
    • service mysql start

About

Helper functions & files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •