ssh [username]@[hostname] -p [portnumber] Reference: http://www.debianadmin.com/howto-use-ssh-local-and-remote-port-forwarding.html
ssh [username]@[hostname] -p [portnumber] /usr/sbin/useradd riariver/bin/passwd riariver
Adding user in sudoer file[jdoe@Eng-Lab-004 ~]$ su -
Password: {user root’s password}
[root@Eng-Lab-010 ~]# gpasswd -a jdoe wheel
Adding user jdoe to group wheel
[root@Eng-Lab-010 ~]#
| git commit --no-verify . |
| cd .git/hooks/ chmod -x pre-commit |
Initialized empty Git repository in /var/git/myapp.git
$last_date = mysql_query("SELECT date FROM data ORDER BY date DESC LIMIT 1"); <?php
$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit;
}
$row = mysql_fetch_row($result);
echo $row[0]; // 42
echo $row[1]; // the email value
?>
use the_database_name;
GRANT ALL PRIVILEGES ON
the_database_name.*
TO
'the_user_in_php_code'@'%'
IDENTIFIED BY
'password_of_the_user_in_php_code';
FLUSH PRIVILEGES; - Select the database from the list
- Click Privileges
- Click "Open new phpMyAdmin window" which can be found in the bottom right corner
- Click "Add a new User" which is located below the list.
- Fill in the form.
-- User name: desired_user_name
-- Host: your_IP_given_by_your_internet_service_provider
-- Password: desired_password
-- Re-type: desired_password
- Click "Go"
- In the "Database-specific privileges" section select the database for the "Add privileges on the following database:" field.
- Select "Check All" and Click "Go"
- Done.