Изменения

Материал из Chaotic Onyx
Перейти к навигацииПерейти к поиску
Частичный перевод
Строка 49: Строка 49:  
Можете посмотреть [[Working with the database]].
 
Можете посмотреть [[Working with the database]].
   −
* Download and install XAMPP ([http://www.apachefriends.org/en/xampp-windows.html Windows], [http://www.apachefriends.org/en/xampp-linux.html Linux]). Make sure you have both apache and mysql selected when you install it.
+
* Скачайте и установите XAMPP ([http://www.apachefriends.org/en/xampp-windows.html Windows], [http://www.apachefriends.org/en/xampp-linux.html Linux]). Убедитесь, что вы поставили галочку на MYSQL и Apache при установке.
* Run XAMPP Control Panel (Open start menu, type 'xampp' in the search field and run it)  
+
* Запустите Панель управления XAMPP (Откройте стартовое меню, введите 'xampp' в поиске и запустите)  
* Click 'Start' next to Apache and MySQL in the control panel. (Apache often conflicts with skype, so make sure you have skype off: Right click it's icon in the tray and click quit. Hiding it is not enough.)
+
* Нажмите 'Start' рядом с Apache и MySQL в панели управления. (Зачастую, Apache конфликтует со скайпом, поэтому убедитесь выключен ли он: Правой кнопкой по иконке скайпа и отключите.)
* Go to the following address in your browser: [http://localhost/phpmyadmin http://localhost/phpmyadmin] (will only work once you start up both Apache and MySQL in the XAMPP Control Panel)
+
* Перейдите по этой ссылке: [http://localhost/phpmyadmin http://localhost/phpmyadmin] (Работает только тогда, когда вы включили Apache и MYSQL, нажав на 'Start')
* Click on the button titled SQL in the row of buttons at the top.
+
* Нажмите на кнопку 'SQL' в строке кнопок сверху.
* Open the file 'SQL/tgstation_schema.sql' in notepad and copy its content. You can also find it [https://github.com/tgstation/-tg-station/blob/master/SQL/tgstation_schema.sql here], but it may be newer than the version you are using.
+
* Откройте файл 'SQL/tgstation_schema.sql' блокнотом и скопируйте содержимое. Вы также можете найти этот файл ссылке: [https://github.com/tgstation/-tg-station/blob/master/SQL/tgstation_schema.sql here], но он может быть свежее, чем версия, которую вы используете.
* Paste the file's content into the input field for sql in phpmyadmin and hit 'Execute' in the bottom right
+
* Вставьте содержимое файла в поле ввода для sql в phpmyadmin и нажмите 'Execute' в правом нижнем углу.
* Once you execute this, a new database should be added to the list on the left, called 'feedback'. If not, refresh the page. If you click on the database, it should show you all the tables it includes. At this point, you have created the database 'infrastructure'. You now have to create a user for it.
+
* После нажатия кнопки execute, новая база данных должна быть добавлена в список 'feedback' слева. Если этого не произошло, обновите страницу. Нажав на базу данных, она откроет вам все таблицы, которые в ней есть. На данный момент, вы создали базу данных 'infrastructure'. Теперь вам нужно создать для неё пользователя.
* Click on 'SQL' in the top again, and execute the following statement: CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypass'; GRANT ALL ON feedback.* TO 'myuser'@'%'; Replace both instances of myuser with some username and mypass with some password. Be careful to copy all the apostrophes. This will create a new user and grant him all privileges for the feedback database.
+
* Снова нажмите на 'SQL' сверху, и выполните следующую команду: CREATE USER 'Логин'@'localhost' IDENTIFIED BY 'Пароль'; GRANT ALL ON feedback.* TO 'Логин'@'%'; Замените оба 'Логина' и 'Пароль' на никнейм и любой пароль. Убедитесь, что вы скопировали все апострофы ('). Эта команда создаст нового пользователя и даст ему все привилегии для базы данных.
* Please keep phpmyadmin open for a while longer.
+
* Оставьте phpmyadmin открытым.
* Open the file: [https://github.com/tgstation/-tg-station/blob/master/config/dbconfig.txt config/dbconfig.txt] in notepad
+
* Откройте файл: [https://github.com/tgstation/-tg-station/blob/master/config/dbconfig.txt config/dbconfig.txt] блокнотом.
* Make sure to set it so that:
+
* Измените значения в файле:
** SQL_ENABLED does not have a # in front of it
+
** SQL_ENABLED не должен иметь символ # перед ним.
 
** ADDRESS localhost
 
** ADDRESS localhost
 
** PORT 3306
 
** PORT 3306
 
** FEEDBACK_DATABASE feedback
 
** FEEDBACK_DATABASE feedback
** FEEDBACK_LOGIN myuser (where myuser is the username you set in the CREATE USER statement)
+
** FEEDBACK_LOGIN myuser (Логин, который вы указали при создании нового пользователя)
** FEEDBACK_PASSWORD mypass (where mypass is the password you set in the CREATE USER statement)
+
** FEEDBACK_PASSWORD mypass (Пароль, который вы указали при создании нового пользователя)
* The database is now set up for death logging, population logging, polls ([[Working with the database#Adding a new poll|Tutorial]]), library, privacy poll, connection logging and player logging. There are two more features which you should consider. And it's best to do so now, since adopting them later can be a pain.
+
* Теперь база данных настроена на логи смертей, новых пользователей, голосования ([[Working with the database#Adding a new poll|Tutorial]]), библиотеки, приватные голосования, коннекты юзеров.
    
=== Database based banning ===
 
=== Database based banning ===
Строка 73: Строка 73:  
Предлагает временные джоббаны, админ баны, мульти-серверные баны, сохраняет их даже после снятия или окончания, и позволяет использовать логи банов.  
 
Предлагает временные джоббаны, админ баны, мульти-серверные баны, сохраняет их даже после снятия или окончания, и позволяет использовать логи банов.  
   −
Что бы включить баны основанные на датабазе:
+
Чтобы включить баны основанные на датабазе:
    
* Откройте config/config.txt
 
* Откройте config/config.txt
Строка 81: Строка 81:  
=== Database based administration ===
 
=== Database based administration ===
   −
<font color='red'>'''DATABASE BASED ADMINISTRATION CURRENTLY DOES NOT WORK.'''</font>
+
<font color='red'>'''DATABASE BASED ADMINISTRATION СЕЙЧАС НЕ РАБОТАЕТ.'''</font>
   −
The rest of this section remains for when it gets fixed.
+
Остальная часть этого раздела будет дополнена, когда функция будет исправлена.
   −
Offers a changelog for changes done to admins, which increases accountability (adding/removing admins, adding/removing permissions, changing ranks); allows admins with +PERMISSIONS to edit other admins' permissions ingame, meaning they don't need remote desktop access to edit admins; Allows for custom ranks, with permissions not being tied to ranks, offering a better ability for the removal or addition of permissions to certain admins, if they need to be punished, or need extra permissions. Enabling this can be done any time, it's just a bit tedious the first time you do it, if you don't have direct access to the database.
+
Предлагает список изменений для фиксов, внесённых админом, что повышает подотчётность (добавление/удаление админов, добавление/удаление доступов, изменение рангов); позволяет админам с +PERMISSIONS редактировать доступы других админов в игре, поэтому им не нужен обязательный доступ к компьютеру, чтобы редактировать админов; Позволяет создавть кастомные ранги, с permissions not being tied to ranks, offering a better ability for the removal or addition of permissions to certain admins, if they need to be punished, or need extra permissions. Enabling this can be done any time, it's just a bit tedious the first time you do it, if you don't have direct access to the database.
    
To enable database based administration:
 
To enable database based administration:
39

правок

Навигация