How to run a PowerShell script

Launch Windows PowerShell, and wait a moment for the PS command prompt to appear Navigate to the directory where the script livesPS> cd C:\my_path\yada_yada\ (enter) Execute the script:PS> .\run_import_script.ps1 (enter) What am I missing?? Or: you can run the PowerShell script from cmd.exe like this: according to this blog post here Or you could even run your PowerShell script from … Read more

error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock

To find all socket files on your system run: My Mysql server system had the socket open at /var/lib/mysql/mysql.sock Once you find where the socket is being opened, add or edit the line to your /etc/my.cnf file with the path to the socket file: Sometimes the system startup script that launched the command line executable specifies … Read more

How to unmount a busy device

YES!! There is a way to detach a busy device immediately – even if it is busy and cannot be unmounted forcefully. You may cleanup all later: NOTE/CAUTION These commands can disrupt a running process, cause data loss OR corrupt open files. Programs accessing target DEVICE/NFS files may throw errors OR could not work properly … Read more

Setting Windows PowerShell environment variables

Changing the actual environment variables can be done by using the env: namespace / drive information. For example, this code will update the path environment variable: There are ways to make environment settings permanent, but if you are only using them from PowerShell, it’s probably a lot better to use your profile to initiate the settings. On … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)