Either svnadmin dump
or svnadmin export
will only has a snapshot of a certain version.
How to keep all change logs when immigrating to another server?
Will it be OK to just copy the /repositories
over there?
I want to clear all all previous revisions and leave only the current revision.
Is there a way to do this?
I don't find a possible command to do this:
[secret@vps303 ~]# svnadmin --help
general usage: svnadmin SUBCOMMAND REPOS_PATH [ARGS & OPTIONS ...]
Type 'svnadmin help <subcommand>' for help on a specific subcommand.
Type 'svnadmin --version' to see the program version and FS modules.
Available subcommands:
crashtest
create
deltify
dump
help (?, h)
hotcopy
list-dblogs
list-unused-dblogs
load
lslocks
lstxns
pack
recover
rmlocks
rmtxns
setlog
setrevprop
setuuid
upgrade
verify
UPDATE
Seems the only solution is to export then import, but will the access permission settings be also exported when we run svn export
?
I've already compiled and installed subversion,
now trying to add users to it.
And I find two articles on this, but they seem to be going in entire different direction.
The 1st is here, which looks very simple, and seems it's not necessary to create a user account(useradd ...
)
the 2nd is here, which is a lot more complicated, and seems I need to create a user account for each svn user.
Which one should I follow?
There is how the book I'm reading describe the insmod
utility:
The program loads the module code and data into the kernel, which, in turn, performs a function similar to that of ld, in that it links any unresolved symbol in the module to the symbol table of the kernel. Unlike the linker, however, the kernel doesn’t modify the module’s disk file, but rather an in-memory copy.
It looks like it won't persist since it's in-memory, but I'm not sure.
What's the difference between svn checkin
and svn import
?
It seems both commands can be used to add new entries to the repository, so what's the difference?
My Apache is installed by yum install apache
And now I'm trying to install subversion server from source following instructions here.
But when I try to configure,get an error:
[root@vps303 subversion-1.6.9]# ./configure
configure: Configuring Subversion 1.6.9
configure: creating config.nice
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
...
checking for APR... no
configure: WARNING: APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and supply the appropriate
--with-apr option to 'configure'
or
get it with SVN and put it in a subdirectory of this source:
svn co \
http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x \
apr
Run that right here in the top level of the Subversion tree.
Afterwards, run apr/buildconf in that subdirectory and
then run configure again here.
Whichever of the above you do, you probably need to do
something similar for apr-util, either providing both
--with-apr and --with-apr-util to 'configure', or
getting both from SVN with:
svn co \
http://svn.apache.org/repos/asf/apr/apr-util/branches/1.2.x \
apr-util
configure: error: no suitable apr found
How do I get around this problem?
BTW,will both client and server software be installed by compiling from source?
mysql -u user -p pass -h remotehost
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 96
Server version: 5.1.36-community-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Suppose the remotehost's OS is linux,
how do I switch to shell mode?
UPDATE
I get access to database via shell prompt.
I meant to access shell prompt of remotehost,typing exit
will return to my own shell prompt.
Is there any good tutos there?
Currently I'm using apache2/mod_php which is not efficient.
[root@jiaoyou mysql]# pwd
/var/lib/mysql
[root@jiaoyou mysql]# ls -ls
338256 -rw-rw---- 1 mysql mysql 346030080 2010-04-22 08:08 ibdata1
626812 -rw-rw---- 1 mysql mysql 641222072 2010-01-26 07:17 mysql-bin.000008
316892 -rw-rw---- 1 mysql mysql 324173772 2010-03-25 12:51 mysql-bin.000009
52724 -rw-rw---- 1 mysql mysql 53931666 2010-04-12 12:13 mysql-bin.000010
10136 -rw-rw---- 1 mysql mysql 10359639 2010-04-22 08:32 mysql-bin.000011
mysql> SHOW BINARY LOGS;
+------------------+-----------+
| Log_name | File_size |
+------------------+-----------+
| mysql-bin.000008 | 641222072 |
| mysql-bin.000009 | 324173772 |
| mysql-bin.000010 | 53931666 |
| mysql-bin.000011 | 10360680 |
+------------------+-----------+
These files ibdata1
,mysql-bin.000008
and mysql-bin.000009
... are taking up too much of my space,will it be ok for me to delete some of them manually?
UPDATE I'm not utilizing MySQL's master/slave,how to drop and disable all the binary files?
I deleted the slow.log of MySQL,but seems it's still cached in the system.
But I don't want to restart MySQL.
du -csh /
The above will take huge amount of time to calculate,is there a way to see the less accurate result with less overhead?
UPDATE
What I want to know is the total size under a specific directory.
Currently I install everything as root,but just for fun.
What's the standard for doing this in linux environment?
The related configuration is like this:
ErrorDocument 404 /404.php
And it works in firefox,but when in IE it's not shown(IE's default 404 page is shown instead)
Has anyone experienced this?
Inside httpd.conf:
rewriterule ^questions/([0-9]+).* ...
It matches /questions/1674/<textarea>
,but not /questions/1674/<textarea><%2Ftextarea>
It's from this answer:
https://stackoverflow.com/questions/2482411/is-this-pdo-bug-fixed-now/2482424#2482424
When the host is "localhost", MySQL Unix clients use a Unix socket, AKA Unix Domain Socket, rather than a TCP/IP socket for the connection, thus the TCP port doesn't matter.