Let's start by stopping the currently running MySQL database.
$ sudo systemctl stop mysql.service
Next, create set proper permission to the folder to be used by MySQL process to store and access socket file.
$ sudo mkdir -p /var/run/mysqld
static PI:f64 = std::f64::consts::PI; | |
fn main() | |
{ | |
let circle_calc = function::circle_calc(14); | |
for list in 0..circle_calc.len() { | |
println!("{}", circle_calc[list]); | |
} | |
} |
pub fn nested_array_heros() { | |
let heros = [ | |
[ | |
"7", //hero id | |
"Lancelot", //name | |
"assassin", //type | |
"89", //power | |
"100", //hp | |
"3", //count skill | |
], |
use std::io; | |
fn main() | |
{ | |
println!("Username : "); | |
let mut username = String::new(); | |
io::stdin() | |
.read_line(&mut username) | |
.expect("Read input failed"); | |
use std::io; | |
fn main() | |
{ | |
println!("Enter an odd number between 1 - 10"); | |
let mut number = String::new(); | |
io::stdin() | |
.read_line(&mut number) // read number | |
.expect("Read input failed"); |
Let's start by stopping the currently running MySQL database.
$ sudo systemctl stop mysql.service
Next, create set proper permission to the folder to be used by MySQL process to store and access socket file.
$ sudo mkdir -p /var/run/mysqld