Somtimes, i want to present a Tex file contains section, subsection, subsubsection and special, subsubsubsection. But subsubsubsection isn't supported by pure Latex, so I need some commands to made it. Fortunalety, Latex has two commands help me. After \begin{document}, we can insert them for our aim:
\setcounter{secnumdepth}{4} %Danh chi so thu 4 cho \paragraph{name}
\setcounter{tocdepth}{4} %---------De muc luc hien thi toi muc thu 4 (toi paragraph)
Wish you easy to use!
18 thg 3, 2011
3 thg 3, 2011
Unused GUI (X window) in ReadHat
Sometimes, I want to use RedHat at text mode. To exchange from X Window(X11) to text mode, you can open \etc\inittab by command
vi /etc/inittab
and repair line id:5:initdefault: by id:3:initdefault: .
Certainly, you can exchange reserve, by use text mode via vi .
Simple, repair 3 to 5!
vi /etc/inittab
and repair line id:5:initdefault: by id:3:initdefault: .
Certainly, you can exchange reserve, by use text mode via vi .
Simple, repair 3 to 5!
2 thg 3, 2011
Reset password for "root" in MySQL 5.5.9
Following, these steps will help you reset password for root account in MySQL 5.5.9 (not for 5.4 before).
      Step 1: Log on as Administator and Stop mysqld (MySQL service) by use Task Manager
      Step 2: Create a text file, containing
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
FLUSH PRIVILEGES; .
Note that you must instead 'MyNewPass' by your new password. UPDATE and FLUSH each on a single line. Assume you save it at C:\mysql-init.txt
      Step 3: cd to mysql\bin and run command: mysqld --init-file=C:\\mysql-init.txt --console . Now, you can open mysql and type mysql -u root -p and type your new password.
Wish you success!
      Step 1: Log on as Administator and Stop mysqld (MySQL service) by use Task Manager
      Step 2: Create a text file, containing
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
FLUSH PRIVILEGES; .
Note that you must instead 'MyNewPass' by your new password. UPDATE and FLUSH each on a single line. Assume you save it at C:\mysql-init.txt
      Step 3: cd to mysql\bin and run command: mysqld --init-file=C:\\mysql-init.txt --console . Now, you can open mysql and type mysql -u root -p and type your new password.
Wish you success!
Đăng ký:
Bài đăng (Atom)