SubjetcPlus is a free and open source tool to help you manage several interrelated parts of your library data
sudo apt update
sudo apt update
sudo apt install mysql-server
sudo systemctl start mysql.service
then
CREATING USERS AND DATABASES
To create a MySQL database
and user, follow these steps: At the command line, log in to MySQL as the
root user:
mysql -u root -p
mysql -u root -p
Type the MySQL root password, and then press Enter
CREATE DATABASE subjectplus;
CREATE DATABASE subjectplus;
CREATE USER sp@localhost;
CREATE USER sp@localhost;
SET PASSWORD FOR sp@localhost= PASSWORD("yourpassword");
SET PASSWORD FOR sp@localhost= PASSWORD("yourpassword");
GRANT ALL ON `sp`.* TO `sp`@`localhost` IDENTIFIED BY 'yourpassword';
GRANT ALL ON `sp`.* TO `sp`@`localhost` IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON subjectplus.* TO sp@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON subjectplus.* TO sp@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
FLUSH PRIVILEGES;
SHOW DATABASES;
SHOW DATABASES;
SHOW DATABASES;
View All MySQL Databases
View All MySQL Databases
To view the database you’ve created simply issue the following command:
exit
To view the database you’ve created simply issue the following command:
exit
Your result should be similar to this:
mysql> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| spdb |
| mysql |
| test |
| tutorial_database |
+--------------------+
4 rows in set (0.00 sec)
+--------------------+
| Database |
+--------------------+
| spdb |
| mysql |
| test |
| tutorial_database |
+--------------------+
4 rows in set (0.00 sec)
sudo service apache2 restart
sudo service apache2 restart
sudo service mysql restart
sudo service mysql restart
apt-get install unzip
mkdir -p /var/www/html/sp
wget https://github.com/subjectsplus/SubjectsPlus/archive/master.zip
unzip -q /var/www/html/sp/master.zip
chown -R www-data.www-data /var/www/html/sp
chmod -R 755 /var/www/html/sp
URL http://localhost/sp/SubjectsPlus-master/
wget https://github.com/subjectsplus/SubjectsPlus/archive/master.zip
unzip -q /var/www/html/sp/master.zip
chown -R www-data.www-data /var/www/html/sp
chmod -R 755 /var/www/html/sp
URL http://localhost/sp/SubjectsPlus-master/
No comments:
Post a Comment